PostHog / PostHog/posthog

Pagination should reset when switching table filtering options

Open
#22,261 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature/activity team/product-analytics
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
7h 27m
Merged PRs (30d)
222

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Events page and reproduce the issue by moving to page 3, then switching from All events to PostHog events. Inspect the pagination and filtering entry points around the displayed event query, including the page parameter shown in the report. Done means switching the event type returns the available results without requiring manual navigation back to page 1.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.