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

Prometheus: Remove raw query toggle #59069

Merged

Conversation

gtk-grafana
Copy link
Contributor

@gtk-grafana gtk-grafana commented Nov 21, 2022

What is this feature?
This PR removes the raw query toggle from the Prometheus query builder, and reduces the size/contrast of the raw query section.

Why do we need this feature?
To simplify the query builder. Seeing the raw query is a good way for users to confirm that values selected in the query builder are as expected, even without knowledge of promql, and the ability to hide/remove this section within the query builder is not useful functionality.

Who is this feature for?
First time and existing users of the prometheus query builder.

Which issue(s) does this PR fix?:
Fixes #58626

Special notes for your reviewer:
Can anyone think of a use case where we absolutely don't want to show the raw query text? I guess if people really hate seeing the raw query we could move this configuration to elsewhere in the UI?

@grafanabot
Copy link
Contributor

@gtk-grafana gtk-grafana added no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels Nov 21, 2022
@gtk-grafana gtk-grafana marked this pull request as ready for review November 21, 2022 19:53
@gtk-grafana gtk-grafana requested a review from a team as a code owner November 21, 2022 19:53
@gtk-grafana
Copy link
Contributor Author

@itsmylife this was assigned to you, but I stole it to have a quick win I could work on while jet-lagged. Did I miss anything that you and Diego had discussed?

Copy link
Contributor

@itsmylife itsmylife left a comment

Choose a reason for hiding this comment

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

LGTM but just a small question

@gtk-grafana gtk-grafana merged commit 5b7ef92 into main Nov 29, 2022
@gtk-grafana gtk-grafana deleted the gtk-grafana/issues/58626/remove-raw-query-toggle-option branch November 29, 2022 14:12
@bohandley
Copy link
Contributor

As part of G10 Getting started with Prometheus

Thanks @gtk-grafana!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend datasource/Prometheus enterprise-ok no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes onboarding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus: Remove raw query toggle in query builder and always show raw query
4 participants