Skip to content

Fix Visual Builder wrong color rules on multiple gauges - #27810

Merged
sulemanof merged 1 commit into
elastic:masterfrom
sulemanof:#23181
Jan 9, 2019
Merged

sulemanof merged 1 commit into
elastic:masterfrom
sulemanof:#23181

Conversation

@sulemanof

@sulemanof sulemanof commented Dec 27, 2018 •

Copy link
Copy Markdown
Contributor

Summary

Fix #23181

The reason was in a series array:

  • when there is only one gauge the data lays by [0] index in the array

index 0

  • when there are more than one gauges there is an undefined value by [0] index in the array, and the data lays by [1] index
    index 1

The reason of such behavior is line 60 in kibana\src\legacy\core_plugins\metrics\public\components\vis_with_splits.js :

guage-error-reason

Any changes here could break an existing functionality, so I decided to affect the only gauge component. Now it works as expected and here how it looks after fix:

guage_color

For maintainers

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@markov00 markov00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code LGTM. I've tested locally the fix and now I can get the right color for each gauges.
Please add a functional test to validate this fix: something like:

  • create a multi gauge tsvb
  • check the color of all the gauges to be the same of the series (green)
  • add a gauge bar color greater than something
  • check if the gauges have the right color

@markov00 markov00 changed the title Fix: Visual Builder - Bug Color Rules on Multiple Gauges Fix Visual Builder wrong color rules on multiple gauges Jan 7, 2019
@markov00 markov00 added bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// labels Jan 7, 2019
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app

@markov00 markov00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok good to go. We will move the test to a different PR

@sulemanof
sulemanof merged commit 603598f into elastic:master Jan 9, 2019
sulemanof added a commit to sulemanof/kibana that referenced this pull request Jan 9, 2019
sulemanof added a commit to sulemanof/kibana that referenced this pull request Jan 9, 2019
@sulemanof
sulemanof deleted the #23181 branch June 26, 2019 09:27
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v6.6.0 v6.7.0 v7.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kibana - Visual Builder - Bug Color Rules on Multiple Gauges

3 participants