Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: query loading bars #22298

Merged
merged 49 commits into from
May 16, 2024
Merged

feat: query loading bars #22298

merged 49 commits into from
May 16, 2024

Conversation

aspicer
Copy link
Contributor

@aspicer aspicer commented May 15, 2024

Problem

Long running queries confuse users and they don't what's going on. The hedgehog running with no feedback gets frustrating.

Changes

Roll out a beta of a loading bar behind a feature flag

Screen.Recording.2024-05-15.at.7.47.47.PM.mov

How did you test this code?

Loading paths tested on local

@aspicer aspicer requested a review from timgl May 15, 2024 17:18
Copy link
Member

@fuziontech fuziontech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh please 🚢 this

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

github-actions bot commented May 15, 2024

Size Change: +97 B (+0.01%)

Total Size: 1.05 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.05 MB +97 B (+0.01%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@timgl timgl enabled auto-merge (squash) May 16, 2024 08:50
@aspicer aspicer disabled auto-merge May 16, 2024 08:52
@timgl timgl merged commit cf6ae8a into master May 16, 2024
80 of 83 checks passed
@timgl timgl deleted the hackathon_query_loading_bars branch May 16, 2024 09:11
Copy link

sentry-io bot commented May 16, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ UnboundLocalError: local variable 'span' referenced before assignment posthog.tasks.tasks.process_query_task View Issue

Did you find this useful? React with a 👍 or 👎

thmsobrmlr pushed a commit that referenced this pull request May 21, 2024
* printing results

* sleep each row

* in progress

* returning loading status for single queries

* cluster all

* new schema

* working row counts

* change types and store in redis

* loading

* working redis

* include and exclude

* object creation

* nan

* Move some things around

* WIP: loading bar

* WIP: loading bar

* summary

* add better formatting

* hooked up

* add feature flag

* fix numbers

* fix nan

* multiple queries

* gate backend

* remove sleep and print

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* python typing

* dom props

* Update UI snapshots for `chromium` (1)

* validate

* fix test

* bunch of bugfixes

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* backend test

* remove stories

* fix type issues

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: Alexander Spicer <aspicer@surfer-172-30-3-221-hotspot.internet-for-guests.com>
Co-authored-by: timgl <tim@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants