Skip to content

Row evolution data export fails when filter_limit is supplied #5397

Description

@mgazdzik

There seems to be a bug with exporting data from row evolution for labels in action report, which have bounce rate = 100%.

Steps to reproduce:

Tasks

  • write unit or integration test reproducing this issue
  • fix bug

Activity

  1. mattab commented on Jul 1, 2014

    @mattab
    Member

    It seems to affect pages URLs that contain a comma character (and maybe other characters are affected?)

  2. tsteur commented on Jul 7, 2014

    @tsteur
    Member

    @ kuba.cc suggestion seems to be the actual issue see ResponseBuilder. I'm gonna try to move the label filter upwards just to see which test fail afterwards...

  3. tsteur commented on Jul 7, 2014

    @tsteur
    Member

    In df3427b: refs #5397 wondering which tests will fail when applying the label filter before limit filter & co

  4. tsteur commented on Jul 7, 2014

    @tsteur
    Member

    Tests fail after moving the label filter, see https://travis-ci.org/piwik/piwik/jobs/29283168

    I think one problem is that "SafeDecodeLabel" ( https://github.com/piwik/piwik/blob/master/core/API/ResponseBuilder.php#L319 ) is no longer executed before the LabelFilter meaning the tests should be updated meaning we would change the API.

    We could recommend to always use filter_limit = -1 when a label filter is used but doesn't sound very intuitive. Especially our export links in the UI would have to take care of this as well :( A hack to always set the filter_limit to -1 when a label filter is used results in even more problems in the end.

    So basically to keep the API the same we'd have to "undo" the SafeDecodeLabel of the label url parameter and then compare. This could work

  5. tsteur commented on Jul 7, 2014

    @tsteur
    Member

    Couldn't really fix it without breaking anything. Maybe someone else wants to have a look?

  6. added this to the milestone on Jul 8, 2014
  7. changed the title [-]Row evolution data export show no data for page URLs containing a comma[/-] [+]Row evolution data export fails when filter_limit is supplied (was: Row evolution data export show no data for page URLs containing a comma)[/+] on Jul 10, 2014
  8. diosmosis commented on Jul 10, 2014

    @diosmosis
    Member

    Changing title since the bug is only present when a filter_limit is present.

  9. changed the title [-]Row evolution data export fails when filter_limit is supplied (was: Row evolution data export show no data for page URLs containing a comma)[/-] [+]Row evolution data export fails when filter_limit is supplied[/+] on Jul 10, 2014
  10. added a commit that references this issue on Jul 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor errors / faults / flaws / inconsistencies etc.CriticalIndicates the severity of an issue is very critical and the issue has a very high priority.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions