PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
22.23k stars 1.34k forks source link

Bug: Saving and re-editing a SQL insight doesn't show the latest saved SQL changes until the page is refreshed #26221

Open abigailbramble opened 1 week ago

abigailbramble commented 1 week ago

Bug Description

Bug description

  1. Edit a SQL insight
  2. Click update and run
  3. Save the insight
  4. View that the updated results are displayed
  5. Click to edit the SQL insight
  6. View that the old SQL query is displayed in the query box
  7. Refresh the page and see that the saved query is returned.

How to reproduce

CleanShot 2024-11-15 at 15 54 45

Additional context

Found while trying to help customers solve tickets.

Debug info

No response

rossgray commented 1 week ago

Thanks @abigailbramble for reporting this. I haven't been able to reproduce it myself however. Is it still happening for you? There have been other instances of bugs that are not reproducible 100% of the time, so I'm guessing it must be due to some internal state.