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

Filtering / Pagination of /api/event/sessions (UI --> Sessions) drops sessions #4462

Closed
1 task
sdoncho opened this issue May 24, 2021 · 3 comments
Closed
1 task
Labels
bug Something isn't working right feature/session-analytics P0 Critical, breaking issue (page crash, missing functionality) stale

Comments

@sdoncho
Copy link

sdoncho commented May 24, 2021

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:
image
image

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

  1. Install the latest docker release
  2. Enable session recording
  3. Make ~50 sessions from different APIs thorough the day

Environment

  • self-hosted PostHog, latest docker image from Repository

Additional context

Thank you for your bug report – we love squashing them!

@sdoncho sdoncho added the bug Something isn't working right label May 24, 2021
@EDsCODE EDsCODE added the P0 Critical, breaking issue (page crash, missing functionality) label Aug 2, 2021
@Twixes Twixes removed the stale label Aug 9, 2021
@paolodamico
Copy link
Contributor

Might be a moot point with #4884

@posthog-bot
Copy link
Contributor

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

@posthog-bot
Copy link
Contributor

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.

@posthog-bot posthog-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right feature/session-analytics P0 Critical, breaking issue (page crash, missing functionality) stale
Projects
None yet
Development

No branches or pull requests

6 participants