Annotations: Switching data source to builtin doesn't remove mappings #87491
Labels
needs more info
Issue needs more information, like query results, dashboard or panel json, grafana version etc
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: