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

Do not execute a query on editor load #835

Merged
merged 2 commits into from
Apr 2, 2024
Merged

Conversation

aangelisc
Copy link
Contributor

When opening the VisualQueryEditor the current behaviour is to auto-select the first table and all of its columns, leading to a query being immediately run.

This is not the best behaviour as these queries could lead to large amounts of data being returned. This is also not the standard Grafana behaviour.

This PR changes the behaviour to not auto-run a query by not auto-selecting a table.

Fixes #796

@aangelisc aangelisc added the type/bug Something isn't working label Mar 28, 2024
@aangelisc aangelisc self-assigned this Mar 28, 2024
@aangelisc aangelisc requested a review from a team as a code owner March 28, 2024 15:51
Copy link

github-actions bot commented Mar 28, 2024

Use the following command to run this PR with Docker at http://localhost:3000:

docker run --rm -p 3000:3000 grafana/plugin-builds:729a144d7438b8493d6fb95c4650427ffef7786cpre

Copy link
Contributor

@bossinc bossinc left a comment

Choose a reason for hiding this comment

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

Good call out

@aangelisc aangelisc merged commit 34a7db3 into main Apr 2, 2024
8 checks passed
@aangelisc aangelisc deleted the andreas/fix-query-running branch April 2, 2024 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
2 participants