diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-04-14 09:24:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 09:24:38 +0300 |
commit | a4e60ad0e7e10ad2bbbd7bd9f2e4e04dbdd5b3e1 (patch) | |
tree | dbc6976d80014e39f7ad0d57db8473283f094ef2 /plugins/Contents | |
parent | 463d8dfb89361e284ca2241ef413e08889bfd278 (diff) |
Faster segmented suggested values when browser archiving is disabled (#15786)
* Faster segmented suggested values when browser archiving is disabled
* make sure no segment is set
* remove wrong var type
* fix/add tests
* add more segment values
* detect if we should flatten or not
* add docs
Diffstat (limited to 'plugins/Contents')
-rw-r--r-- | plugins/Contents/Columns/ContentName.php | 1 | ||||
-rw-r--r-- | plugins/Contents/Columns/ContentPiece.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Contents/Columns/ContentName.php b/plugins/Contents/Columns/ContentName.php index b327918a77..a56b49f835 100644 --- a/plugins/Contents/Columns/ContentName.php +++ b/plugins/Contents/Columns/ContentName.php @@ -24,6 +24,7 @@ class ContentName extends ActionDimension protected $nameSingular = 'Contents_ContentName'; protected $namePlural = 'Contents_ContentNames'; protected $acceptValues = 'The name of a content block, for instance "Ad Sale"'; + protected $suggestedValuesApi = 'Contents.getContentNames'; protected $type = self::TYPE_TEXT; protected $category = 'General_Actions'; protected $sqlFilter = '\\Piwik\\Tracker\\TableLogAction::getIdActionFromSegment'; diff --git a/plugins/Contents/Columns/ContentPiece.php b/plugins/Contents/Columns/ContentPiece.php index 35ac1df8cc..c1d5d3d444 100644 --- a/plugins/Contents/Columns/ContentPiece.php +++ b/plugins/Contents/Columns/ContentPiece.php @@ -23,6 +23,7 @@ class ContentPiece extends ActionDimension protected $nameSingular = 'Contents_ContentPiece'; protected $namePlural = 'Contents_ContentPieces'; protected $acceptValues = 'The actual content. For instance "ad.jpg" or "My text ad"'; + protected $suggestedValuesApi = 'Contents.getContentPieces'; protected $type = self::TYPE_TEXT; protected $category = 'General_Actions'; protected $sqlFilter = '\\Piwik\\Tracker\\TableLogAction::getIdActionFromSegment'; |