Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SceneDataTransformer: Fixes transformer emitting untransformed series #720

Merged
merged 2 commits into from
May 8, 2024

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented May 7, 2024

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

✨ Test out this PR locally via:

npm install @grafana/scenes@4.15.0--canary.720.8986092576.0
# or 
yarn add @grafana/scenes@4.15.0--canary.720.8986092576.0

@torkelo torkelo added minor Increment the minor version when merged release Create a release when this pr is merged labels May 7, 2024
Copy link
Contributor

@oscarkilhed oscarkilhed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!

The change left some imports unused.

@torkelo torkelo merged commit 4398cbc into main May 8, 2024
3 checks passed
@torkelo torkelo deleted the fixes-transformer-emitting-untransformed-values branch May 8, 2024 06:18
@grafanabot
Copy link
Contributor

🚀 PR was released in v4.15.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged release Create a release when this pr is merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants