Filtering / Pagination of /api/event/sessions (UI --> Sessions) drops sessions #4462
Labels
bug
Something isn't working right
feature/session-analytics
P0
Critical, breaking issue (page crash, missing functionality)
stale
Bug description
I tried posting a bug already but anyway here I try again:
I don't know if it's relevant but I have session recordings enabled. Sessions are not properly fetched from the backend when using filters. I know for a fact that there are around ~60 sessions for a specific filter, but on the GUI only 4 are shown. Sometimes I will see sessions dissapearing before my very eyes when I refresh the page.
The sessions are there in the database and are counted correctly on the Insights page. Compare the two screenshots:


Furthermore when playing around with the REST API, I figured out the following:
/api/event/sessions/?date_from=2021-05-24&date_to=2021-05-24&distinct_id=&filters=SOME_FILTER
returns 9 results from the 24.05
while /api/event/sessions/?date_from=2021-05-23&date_to=2021-05-24&distinct_id=&filters=SOME_FILTER
returns 6 results from 24.05
both results are unpaginated
Expected behavior
I expect to be able to see the (roughly) the same number of sessions with the same number of unique visitors. Furthermore I expect sessions to not be dissapearing
How to reproduce
Environment
Additional context
Thank you for your bug report – we love squashing them!
The text was updated successfully, but these errors were encountered: