grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
60.72k stars 11.61k forks source link

[v11.0.x] Canvas: Fix phantom connections persisting after element deletion #87355

Closed grafana-delivery-bot[bot] closed 2 weeks ago

grafana-delivery-bot[bot] commented 2 weeks ago

Backport 68fa2110d61cdc7a5471f67daa483806dbe12d54 from #87285


The classic one liner fix - the connections were being deleted correctly but the scene connections state was out of sync

Quick repro Canvas connection test dashboard-1714711047385.json

Before

https://github.com/grafana/grafana/assets/22381771/9d4b408a-c2f8-48a9-9763-8e9feeb23df8

After

https://github.com/grafana/grafana/assets/22381771/472d3c68-884e-4e59-92f0-111502fd0ab7

Note: was not able to reproduce the panel crashing issue 😬

Fixes https://github.com/grafana/grafana/issues/85299