Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
cloph opened this Issue · 1 comment

2 participants

cloph Matthieu Aubry
cloph

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)
Keywords: actions api, filter, multiple sites, date-range

Matthieu Aubry
Owner

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

cloph cloph added this to the 1.6 Piwik 1.6 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.