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

[Bug Report] Query reset on "toggle edit mode" #6328

Closed
ADeane6 opened this issue Oct 19, 2016 · 3 comments
Closed

[Bug Report] Query reset on "toggle edit mode" #6328

ADeane6 opened this issue Oct 19, 2016 · 3 comments

Comments

@ADeane6
Copy link

ADeane6 commented Oct 19, 2016

Grafana Version: v3.1.1 (commit: a4d2708)
Database: InfluxDB version 1.0.2
System: Ubuntu 14.04 server

This bug occurs when creating/editing a panel in a dashboard, I create a query in raw mode and then "Toggle Edit Mode"
Raw mode Before

Press "toggle edit mode"

Simple Mode

press "toggle edit mode"

Raw mode After

I expected the query to be kept intact and allow for editing in simple mode, but the query was reset to the default placeholder query. This can be frustrating when in the middle of creating a panel.

@torkelo
Copy link
Member

torkelo commented Oct 19, 2016

For InfluxDB you have 2 options to write queries (two edit modes), either using the UI query editor, or using a raw textbox.

Switching between these two edit modes and having your changes persist between them is not supported

@torkelo torkelo closed this as completed Oct 19, 2016
@teedilo
Copy link

teedilo commented May 9, 2017

I ran into this same issue today. I wonder whether an enhancement might be considered for at least disabling Toggle Edit Mode once the user has made a choice and actually entered data either via the UI query editor or raw textbox. It's really a bummer to lose what you've already entered. I'll know to be very careful when using Toggle Edit Mode in the future, but others may also have to learn this the hard way without some sort of fail safe.

@torkelo
Copy link
Member

torkelo commented May 10, 2017

Yes, a warning when going from textbox mode to UI query builder would be appropriate

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

No branches or pull requests

3 participants