Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong number of records with Live.getLastVisitsDetails, offset_limit when segment is used #7784

Open
ruchitrami opened this issue Apr 28, 2015 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@ruchitrami
Copy link

A little difficult problem to communicate without actual data, but let me try.

I am using Live.getLastVisitsDetails endpoint to get the visit details. I am using offset_limit for paging the details shown. It works as intended. I am adding fliter for users with events. I am using segment with eventCategory. Now if I query the API with offset_limit as 10 and eventCategory==General, it returns me only 6 records. If i only change the offset_limit to 20 it returns me only 11 results.

So, somehow the API is limiting the number of visits and then applying the segment filter, which in turn makes the number of records return incorrect.

Edit: I see that piwik 2.13.0 RC is released just yesterday. I am still using piwik stable version. Not sure if this is fixed in the new release.
Update: Updated piwik to 2.13.0 RC, still same behaviour.

@mattab
Copy link
Member

mattab commented Jun 10, 2015

Hi @ruchitrami

Thanks for the report.

So, somehow the API is limiting the number of visits and then applying the segment filter, which in turn makes the number of records return incorrect.

Correct, this is what is happening.

Unfortunately at this stage I can't think of a solution that would make paging work well with a segment, while still providing performance / speed. We will re-visit later.

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Jun 10, 2015
@mattab mattab added this to the Mid term milestone Jun 10, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
@mattab mattab changed the title Wrong number of records with Live.getLastVisitsDetails, offset_limit and segment with eventCategory. Wrong number of records with Live.getLastVisitsDetails, offset_limit when segment is used Jun 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants