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

VizPanel: Allow queries to be cancelled #220

Merged
merged 13 commits into from
Jun 19, 2023
Merged

VizPanel: Allow queries to be cancelled #220

merged 13 commits into from
Jun 19, 2023

Conversation

kaydelaney
Copy link
Contributor

@kaydelaney kaydelaney commented May 31, 2023

Not sure this is the right approach (specifically with how I'm getting the closest SceneQueryRunner), but it seems to work.

Part of #207
Will tackle query variable cancellation in another PR

📦 Published PR as canary version: 0.17.0--canary.220.5309552119.0

✨ Test out this PR locally via:

npm install @grafana/scenes@0.17.0--canary.220.5309552119.0
# or 
yarn add @grafana/scenes@0.17.0--canary.220.5309552119.0

@kaydelaney kaydelaney added the type/enhancement New feature or request label May 31, 2023
@kaydelaney kaydelaney self-assigned this May 31, 2023
@dprokop
Copy link
Member

dprokop commented May 31, 2023

Would appreciate a demo scene in scene-app for testing this behavior :)

@kaydelaney
Copy link
Contributor Author

Would appreciate a demo scene in scene-app for testing this behavior :)

I think the lazy loading demo should work for testing (the queries take at least 5 seconds)

@dprokop dprokop marked this pull request as ready for review June 1, 2023 13:20
@dprokop dprokop added minor Increment the minor version when merged release Create a release when this pr is merged labels Jun 1, 2023
@kaydelaney kaydelaney requested a review from dprokop June 1, 2023 14:41
@kaydelaney
Copy link
Contributor Author

Not sure what the best approach is for checking if a SQR is shared between multiple panels

@natellium natellium linked an issue Jun 6, 2023 that may be closed by this pull request
Copy link
Member

@dprokop dprokop left a comment

Choose a reason for hiding this comment

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

Looks good now @kaydelaney! I see only one comment left from @torkelo and I think we should be good to land this :)

packages/scenes/src/querying/SceneDataTransformer.ts Outdated Show resolved Hide resolved
packages/scenes/src/core/types.ts Outdated Show resolved Hide resolved
@kaydelaney kaydelaney merged commit 556dc86 into main Jun 19, 2023
3 checks passed
@kaydelaney kaydelaney deleted the query-cancellation branch June 19, 2023 10:03
@grafanabot
Copy link
Contributor

🚀 PR was released in v0.17.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged release Create a release when this pr is merged released type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Queries: Provide a way for query cancellation
4 participants