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

fix(web-analytics): Use events rather than sharded_events for raw_sessions backfill #23989

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

robbie-c
Copy link
Member

@robbie-c robbie-c commented Jul 25, 2024

Problem

I believe this is the root cause for some users seeing a disceprency in their v1 vs v2 session table calculations.

The previous backfill script for v1 used events rather than sharded_events, and worked as expected. It was a mistake to use sharded_events for v2.

I've had to revert the sessions table back to v1 for the time being, but this means that the bounce rate fix is also rolled back (i.e. bounce rate is broken again), so it'd be great to make forward progress on this ASAP

Changes

Change the backfill to use events rather than sharded_events

Does this work well for both Cloud and self-hosted?

Yes (though idk if self-hosted people are likely to run the backfill)

How did you test this code?

n/a

@robbie-c robbie-c requested a review from fuziontech July 25, 2024 14:38
@robbie-c robbie-c force-pushed the fix/raw_sessions_backfill branch from b3c5393 to d8fe368 Compare July 25, 2024 14:49
@robbie-c robbie-c requested a review from a team July 25, 2024 17:45
Copy link
Contributor

@daibhin daibhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does what it says on the tin. Whether the tin is the baked beans you're looking for? I hope so

@robbie-c robbie-c merged commit af4ea7f into master Jul 25, 2024
89 checks passed
@robbie-c robbie-c deleted the fix/raw_sessions_backfill branch July 25, 2024 20:52
silentninja pushed a commit to silentninja/posthog that referenced this pull request Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants