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

TimeSeries: Don't re-init chart with bars style on data updates #83355

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

leeoniya
Copy link
Contributor

@leeoniya leeoniya commented Feb 24, 2024

Fixes #63247

we were unintentionally re-initializing TimeSeries charts that contained bars-style series as a result of needing to customize how null values are handled when joining the dataset. we were modifying field.config.custom.spanNulls to a magic value, which caused the schema diff to increment the structureRev and force re-init with every data update.

this PR removes the use of mutation and magic value, replacing it with an extra option to the join transformer that allows customizing the null-values behavior on a per-field basis, allowing us to keep the original schema intact for a clean diff.

@leeoniya leeoniya added type/bug type/performance area/panel/timeseries The main time series Graph panel area/tooltip no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels Feb 24, 2024
@leeoniya leeoniya self-assigned this Feb 24, 2024
@leeoniya leeoniya requested a review from a team as a code owner February 24, 2024 12:55
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.0.x milestone Feb 24, 2024
Copy link
Contributor

@nmarrs nmarrs left a comment

Choose a reason for hiding this comment

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

LGTM - tested locally and confirmed fix :)

Screen.Recording.2024-02-24.at.9.51.51.PM.mov

@leeoniya leeoniya enabled auto-merge (squash) February 27, 2024 01:39
@leeoniya leeoniya merged commit 93fef22 into main Feb 27, 2024
18 checks passed
@leeoniya leeoniya deleted the leeoniya/timeseries-bars-structureRev branch February 27, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend area/panel/timeseries The main time series Graph panel area/tooltip no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes type/bug type/performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip: Time series with bars: Tooltip hides on autorefresh
3 participants