-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Changing templated value from dropdown is causing unsaved changes #11063
Comments
I noticed the same and got rid of that prompt by unchecking editable in the dashboard settings |
thanks for reporting this, indeed a bug! |
Oh thanks! I have been hit by that but not reporting because I never found the cause. |
When Grafana load an 4.0 dashboard it will perform the migration in the browser. Therefore change parts of the dashboard json and ask you if you want to save the changes. Might that be what you experienced? Are you able to reproduce this after saving the dashboard once? |
@bergquist I'm able to reproduce after initial save Also tried with newly created dashboard and the behaviour is the same |
This is due to the Looking into the code I don't understand why its updated. Perhaps it's not cloned properly? |
That is updated on every repeat process to aid cleanup , should be ignored in unsaved changes diff (it was before in v4 but maybe changed name ) |
Ok. PR on its way! |
closes grafana#11063 (cherry picked from commit a7d62f4)
First of all I would like to thank you for your great work!
We are experiencing some strange behavior after upgrading to Version 5 and I am not sure if it's a bug, but:
What Grafana version are you using?
5.0
What datasource are you using?
Prometheus
What OS are you running grafana on?
Ubuntu Linux
What did you do?
Go to a dashboard with a templated datasource/label_value() query and change the template value from the dropdown, then try to select some other dashboard.
What was the expected result?
Not to prompt for unsaved changes when I try to change to different dashboard
What happened instead?
Prompt for unsaved changes when I try to change to different dashboard
The dashboards were automatically migrated from Grafana 4, but the behaviour is the same on newly created dashboard also
The text was updated successfully, but these errors were encountered: