Opened 3 years ago

Closed 3 years ago

#2530 closed Bug (fixed)

filter only applies to first queried site when date-range is used

Reported by: cloph Owned by:
Priority: major Milestone: 1.6 Piwik 1.6
Component: Core Keywords: actions api, filter, multiple sites, date-range
Cc: Sensitive: no

Description

A filter applied to the label of the outlinks action parameter is only applied to the first subsite, not to the other ones that are queried at the same time and when a date-range is used.

Works:
Only one site, date range

?module=API&method=Actions.getOutlinks&idSite=2&period=day&date=previous7&filter_column=label&filter_pattern=download&format=xml

Works:
multiple sites, single date

?module=API&method=Actions.getOutlinks&idSite=all&period=day&date=yesterday&filter_column=label&filter_pattern=download&format=xml

Does not work:
multiple sites, date-range

?module=API&method=Actions.getOutlinks&idSite=all&period=day&date=previous7&filter_column=label&filter_pattern=download

result is that the output is filtered for the first site only. The other sites return the results as if the filter was not specified. (No difference when using filter_column_recursive and filter_pattern_recursive instead)

Change History (4)

comment:1 Changed 3 years ago by matt (mattab)

  • Milestone set to 1.6 Piwik 1.6
  • Priority changed from normal to low

comment:2 Changed 3 years ago by matt (mattab)

  • Milestone changed from 1.7 Piwik 1.7 to 1.6 Piwik 1.6

comment:3 Changed 3 years ago by matt (mattab)

  • Priority changed from low to major

comment:4 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5200]) Fixes #2530 by removing wrong optimization causing code to fail, thanks for the bug report cloph

Note: See TracTickets for help on using tickets.