grafana / scenes

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

SceneQueryRunner: Detect new variable values when cloned #727

Closed torkelo closed 4 months ago

torkelo commented 4 months ago

Part of row repeat fixes https://github.com/grafana/grafana/pull/87539

When changing so that we repeat the first row we are cloning scene query runners that have data and putting them into a new "variable context", but the scene query runners did not detect that variables are different so did not issue new queries.

This changes clone logic of SceneQueryRunner so that it will record the current variable values (Before this only happened on deactivate)

📦 Published PR as canary version: 4.18.0--canary.727.9027841193.0
:sparkles: Test out this PR locally via: ```bash npm install @grafana/scenes@4.18.0--canary.727.9027841193.0 # or yarn add @grafana/scenes@4.18.0--canary.727.9027841193.0 ```
grafanabot commented 4 months ago

:rocket: PR was released in v4.18.0 :rocket: