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.65k stars 1.16k forks source link

Pagination should reset when switching table filtering options #22261

Open corywatilo opened 2 months ago

corywatilo commented 2 months ago

Bug Description

Bug description

When paginating through events and switching from All events to PostHog events, results will be empty if you're not paginated to page 1.

For example, I was on page 3, but since there is only 1 page of PostHog events, I had to paginate back to page 1.

&event_type=event&ordering=-last_seen_at&page=3

Seems like page param should be removed when switching the type.

How to reproduce

  1. Go to events
  2. Change to page 3
  3. Switch to Type: PostHog events

Additional context

2024-05-11 14 33 48

Debug info

- [x] PostHog Cloud
isAdrisal commented 2 months ago

Ditto for other tables, like https://us.posthog.com/project/XXXXX/insights

Adding a filter like "On dashboard Y" works for page 1, but then clicking through to page 2 seems to lose the filter.