Opened 10 months ago

Closed 6 months ago

#4044 closed Bug (fixed)

Problem with API method Live.getLastVisitDetails and filter_offset

Reported by: tsteur Owned by:
Priority: normal Milestone: 2.0 - Piwik 2.0
Component: Core Keywords:
Cc: Sensitive: no

Description

When executing this request I'm getting visitors from 23:50 - 22:50o'clock.

http://demo.piwik.org/index.php?filter_limit=15&period=day&date=2012-07-08&idSite=7&module=API&token_auth=anonymous&format=json&method=Live.getLastVisitsDetails&language=en&

When executing a follow up request to fetch the previous visitors I'm getting visitors from 22:00 - 20:45o'clock

http://demo.piwik.org/index.php?filter_limit=45&filter_offset=15&period=day&date=2012-07-08&idSite=7&module=API&token_auth=anonymous&format=json&method=Live.getLastVisitsDetails&language=en&

When executing another follow up request to fetch the previous visitors I'm getting visitors from 19:35 - 18:00o'clock

http://demo.piwik.org/index.php?filter_limit=75&filter_offset=45&period=day&date=2012-07-08&idSite=7&module=API&token_auth=anonymous&format=json&method=Live.getLastVisitsDetails&language=en&

It looks like I always miss a page or 30-60minutes. Am I doing something wrong? Doesn't look like a coincidence as this happens on all "pages" thoughout all days

At first, I expected when calling filter_offset=45 & filter_limit=30 I will get 30 visitors starting from 45. But this is also not the case.

Change History (5)

comment:1 Changed 7 months ago by matt (mattab)

  • Milestone changed from 2.0 - Piwik 2.0 to Piwik 2.1

Piwik 2.0 full focus mode: Moving normal + low priorities to Piwik 2.1 milestone.

comment:2 Changed 6 months ago by matt (mattab)

  • Milestone changed from 2.1 - Piwik 2.1 to 2.0 - Piwik 2.0

comment:3 Changed 6 months ago by tsteur

In ba84d899c22db89df6e34790407e84281a5f6612:

refs #4044 this could fix the filter_limit and filter_offset is applied twice. Once in Live.getLastVisitDetails and once in ResponseBuilder. Unfortunately, cannot run all tests on my local machine to make sure everything still works.

comment:4 Changed 6 months ago by tsteur

In e8ab9c964521e2d51c1d470733a8a212a28534a8:

refs #4044 fix visitor profile is not working

comment:5 Changed 6 months ago by tsteur

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.