You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For most data sources (e.g. Static), we can map the annotation details (e.g. title and text) to fields. This makes no sense for builtin data source, hence with #51256 the configuration UI was hidden. But existing mappings still exist in the model and are used when displaying annotations. This leads to the strange effect that e.g. the text isn't visible in the tooltip, although it is stored in the DB.
What did you expect to happen?
Mappings should be cleared when switching to an annotation data source which doesn't support them, or at least they shouldn't be considered when processing annotations.
Did this work before?
Not that I'm aware of.
How do we reproduce it?
Create a new annotation of type "Static".
Add two fields, "abc" and "def".
Map "title" and "text" to these two fields.
Click "Apply".
Verify in the JSON model of the dashboard that the mappings are filled.
Edit the annotation and change the data source to "-- Grafana --".
Observe that mappings are no longer visible in the UI.
Click "Apply".
Find that the mappings still exist in the JSON model.
The following steps can't be executed on the playground since I can't seem to add any annotations:
Go back to the panel and create an annotation with some text.
Hover the annotation and observe that the text isn't shown.
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
I tried most of the steps in the playground:
Grafana: Grafana v11.1.0-69950 (a4bb4c8)
OS:
Browser: Chrome 124
Grafana platform?
None
Datasource(s)?
No response
The text was updated successfully, but these errors were encountered:
What happened?
For most data sources (e.g. Static), we can map the annotation details (e.g. title and text) to fields. This makes no sense for builtin data source, hence with #51256 the configuration UI was hidden. But existing mappings still exist in the model and are used when displaying annotations. This leads to the strange effect that e.g. the text isn't visible in the tooltip, although it is stored in the DB.
What did you expect to happen?
Mappings should be cleared when switching to an annotation data source which doesn't support them, or at least they shouldn't be considered when processing annotations.
Did this work before?
Not that I'm aware of.
How do we reproduce it?
mappings
are filled.mappings
still exist in the JSON model.The following steps can't be executed on the playground since I can't seem to add any annotations:
Is the bug inside a dashboard panel?
No response
Environment (with versions)?
I tried most of the steps in the playground:
Grafana: Grafana v11.1.0-69950 (a4bb4c8)
OS:
Browser: Chrome 124
Grafana platform?
None
Datasource(s)?
No response
The text was updated successfully, but these errors were encountered: