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
20.55k stars 1.22k forks source link

Bug Report: Long running insight query blocks all other insights from loading #23440

Closed skoob13 closed 1 month ago

skoob13 commented 2 months ago

Bug Description

Bug description

When we open an insight that could potentially load indefinitely, like #22999, after closing the loading insight and opening another insight, the web app doesn't cancel the first query and continues loading the first insight.

How to reproduce

Easy to reproduce on the insight from this ticket.

  1. Open a funnel query with many steps (10+).
  2. Click the browser back button.
  3. Open an existing trends insight or create a new one.
  4. The app continues to load the first insight.

Expected result

When a user leaves the Insight page, the app should abort the first request so that it stops trying to retrieve data.

Additional Context

Support Ticket

thmsobrmlr commented 1 month ago

Might be a duplicate https://github.com/PostHog/posthog/issues/21557

anirudhpillai commented 1 month ago

Was fixed by disabling 'chaining' for dashboard refresh

24057