PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.39k stars 1.13k forks source link

feat(web-analytics): Fix group by, remove date range #23367

Closed robbie-c closed 3 days ago

robbie-c commented 4 days ago

Problem

The sessions v2 table group by doesn't match the order by. This isn't likely to be causing problems but does go against best practice so fix it.

Additionally, we no longer need the date range condition

Changes

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

Yes

How did you test this code?

Relies on existing tests passing