Feature request: posthog-live - option to keep live events sorted by timestamp

Open
#133,406 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Domain
cli

Research direction

Find the implementation and tests for posthog-live, then trace how incoming events are added to the displayed list. The request is for an optional timestamp-based ordering for development sessions with few events; done means the option keeps events ordered by when they happened while preserving the existing behavior by default.

Written by the indexing model from the issue text.

Description

enhancement livestream team/web-analytics

Is your feature request related to a problem?

While integrating PostHog into an app, with themselves as the only user so far, a user watches incoming events in posthog-live. Events sometimes show up out of order: the list follows the order events reach the terminal, not the order they happened.

Describe the solution you'd like

An option in posthog-live to keep the event list sorted by when each event happened, for development use where only a few events arrive at a time.

Describe alternatives you've considered

The Activity tab in PostHog lists events by timestamp, but the user finds it too noisy for this.

Additional context

From: https://us.posthog.com/project/2/support/tickets/81610

Dominant language
Python
Stars
40.8k
Forks
3.6k
Avg merge
6h 43m
Merged PRs (30d)
254

Getting set up

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.

More from PostHog/posthog

All issues in PostHog/posthog

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.