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

StatPanels: Fixed change from singlestat to Gauge / BarGauge / Stat where default min & max (0, 100) was copied #21820

Merged
merged 1 commit into from
Jan 29, 2020

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Jan 29, 2020

Fixes #21818

The panel change hander did copy default gauge min and max from the angular singlestat even when not enabled. So when switching between visualizations the new react panels picked up min: 0 and max: 100 when switching from the singlestat panel

@torkelo torkelo added this to the 6.6.1 milestone Jan 29, 2020
Copy link
Member

@dprokop dprokop left a comment

Choose a reason for hiding this comment

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

LGTM

@marefr
Copy link
Member

marefr commented Jan 29, 2020

Maybe the PR title can be changed to a shorter one 😄 If we want to include in changelog that is

@torkelo torkelo changed the title StatPanels: Fixed migration/change from old Singlestat to Gauge / BarGauge / Stat where default min & max was copied even when gauge was not enabled in the singlestat panel StatPanels: Fixed change from singlestat to Gauge / BarGauge / Stat where default min & max (0, 100) was copied Jan 29, 2020
@torkelo
Copy link
Member Author

torkelo commented Jan 29, 2020

updated title

@torkelo torkelo merged commit 13948c0 into master Jan 29, 2020
@torkelo torkelo deleted the fixed-stat-panel-changed-handler branch January 29, 2020 19:42
alexanderzobnin pushed a commit that referenced this pull request Feb 5, 2020
… being copied even when gauge was disbled (#21820)

(cherry picked from commit 13948c0)
alexanderzobnin pushed a commit that referenced this pull request Feb 6, 2020
… being copied even when gauge was disbled (#21820)

(cherry picked from commit 13948c0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Graph on the Stat panel not showing properly
4 participants