grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
141 stars 21 forks source link

Panel throws a TypeError exception when annotation `tags` is a `number` #916

Open macabu opened 1 month ago

macabu commented 1 month ago

Description When adding an annotation tags field and the values are number types, hovering on the annotation breaks the panel.

Demo https://github.com/user-attachments/assets/b8c6e709-c53d-49b7-82ed-7995a533dfad

Image Image

RRC Details Slug: macabu (feel free to add to my org, there's a reproducible setup there already) Channel: steady Version: 11.3.0-75826

axelavargas commented 1 month ago

Hey @macabu , I am adding the link from the internal slack conversation to get more context

Leon: the bug is somewhere in here,

https://github.com/grafana/scenes/blob/6b3d147a7d79378e8199a5ba80d0cc8aed18773a/pa[…]scenes/src/querying/layers/annotations/AnnotationsDataLayer.tsx