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

SceneDataTransformer: Fixes transformer emitting untransformed series #720

Closed torkelo closed 4 months ago

torkelo commented 4 months ago

Fixes an issue in SceneDataTransformer where it would emit untransformed series when annotations where present.

Because the two transformation observables where done in parallel the annotations one can complete before the series one and this cause the untransformed series data to be emitted.

Now I wait for both series + annotation transforms to be completed before emitting anything, this also greatly reduces state updates.

Also an unrelated change in SceneQueryRunner that is most just a cleaner logic change

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

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