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

Graphite: Do not change query when opening the query editor and there is no data #21588

Merged
merged 1 commit into from
Jan 20, 2020

Conversation

daniellee
Copy link
Contributor

This changes the logic of the Graphite query editor so that it does not modify the metric path when a user opens the query editor. The old behavior was to execute a find query for the last part of the metric path and if there was no data, then it would change the value to be select metric.

The old behavior is still in place when toggling edit mode or for any other action that parses the metric path.

Fixes #21563

opening the Graphite query editor and there is no data
for the last segment value.

Fixes #21563
Copy link
Contributor

@marefr marefr left a comment

Choose a reason for hiding this comment

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

LGTM

@daniellee daniellee changed the title graphite: do not query when opening the query editor and no data for the last segment value graphite: do not change query when opening the query editor and there is no data Jan 17, 2020
@daniellee daniellee added this to the 6.6.0-stable milestone Jan 17, 2020
Copy link
Member

@torkelo torkelo 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!

@daniellee daniellee modified the milestones: 6.6.0-stable, 6.6.0-beta1 Jan 20, 2020
@daniellee daniellee merged commit 79255fa into master Jan 20, 2020
@daniellee daniellee deleted the 21563-graphite-select-metric branch January 20, 2020 09:18
@marefr marefr changed the title graphite: do not change query when opening the query editor and there is no data Graphite: Do not change query when opening the query editor and there is no data Jan 20, 2020
johntdyer pushed a commit to johntdyer/grafana that referenced this pull request Jan 21, 2020
opening the Graphite query editor and there is no data
for the last segment value.

Fixes grafana#21563
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graphite: queries can get saved with "select metric" in the metric path
3 participants