Open hardikbajaj opened 1 year ago
Thanks @hardikbajaj for reporting this. Looks like it is the same as https://github.com/grafana/grafana/pull/66762 (thanks Gábor for such a nice explanation).
It looks like we will need to make a similar fix.
Adding "good first issue" since there is a model PR to follow.
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
What happened: Updating or opening an annotation messes up the dashboard logic, and query field becomes empty. This breaks the annotation query logic.
When you add annotation, JSON model of dashboard look like this
When you just open the annotation or update any field apart from query, JSON model becomes this
the
target
field contains the query now, which the annotation don't read and full timeseries panel is filled with annotations at all time stamps. This can break the dashboard in cases where time range is very high.What you expected to happen: The query field to always contain the query added in UI
How to reproduce it (as minimally and precisely as possible):
query
will be empty andtarget
will contain the query nowAnything else we need to know?:
Environment: