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

Fix major severity service map ring colors #66124

Merged
merged 1 commit into from
May 11, 2020
Merged

Conversation

smith
Copy link
Contributor

@smith smith commented May 11, 2020

Using || in the switch statement made it so "major" did not work, and we would get the border width but not the color. Change to splitting case statements.

Fixes #66081

Using `||` in the switch statement made it so "major" did not work, and we would get the border width but not the color. Change to splitting case statements.

Fixes elastic#66081
@smith smith added release_note:skip Skip the PR/issue when compiling release notes v7.8.0 labels May 11, 2020
@smith smith requested a review from a team as a code owner May 11, 2020 20:47
@botelastic botelastic bot added the Team:APM All issues that need APM UI Team support label May 11, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

Copy link
Contributor

@ogupte ogupte left a comment

Choose a reason for hiding this comment

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

approved

@@ -17,7 +17,8 @@ export const getSeverityColor = (nodeSeverity: string) => {
switch (nodeSeverity) {
case severity.warning:
return theme.euiColorVis0;
case severity.minor || severity.major:
case severity.minor:
case severity.major:
Copy link
Member

@sorenlouv sorenlouv May 11, 2020

Choose a reason for hiding this comment

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

Perhaps add a unit test for getSeverityColor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's private to these settings, and I didn't want to export it just for the purposes of testing. It is exposed (and was broken) in the storybook:

image

I'd be open to exporting it just to add unit tests though.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@smith smith merged commit 0802ccc into elastic:master May 11, 2020
smith added a commit to smith/kibana that referenced this pull request May 11, 2020
Using `||` in the switch statement made it so "major" did not work, and we would get the border width but not the color. Change to splitting case statements.

Fixes elastic#66081
smith added a commit to smith/kibana that referenced this pull request May 11, 2020
Using `||` in the switch statement made it so "major" did not work, and we would get the border width but not the color. Change to splitting case statements.

Fixes elastic#66081
gmmorris added a commit to gmmorris/kibana that referenced this pull request May 12, 2020
* master: (46 commits)
  [Drilldowns][chore] Remove some any's from components. Remove `PlaceContext` from components (elastic#65854)
  [functional/services] import By/until from module (elastic#66015)
  [Drilldowns][IE] fix welcome bar layout in IE (elastic#65676)
  Inspect action shows on dashboard for every chart (elastic#65998)
  Fix heigt calc in calc issue for ie11 (elastic#66010)
  [Flights] Delay Bucket - Error notification on opening sample visualization (elastic#66028)
  [SIEM] [Security] unified code structure phase 0 (elastic#65965)
  [Maps] Organize layers into subfolders (elastic#65513)
  skip flaky suite (elastic#59849)
  Cleanup prefill and edit flow. (elastic#66105)
  Fix major severity service map ring colors (elastic#66124)
  [DOCS] Improves formatting in action types (elastic#65932)
  [DOCS] APM Agent config: Setting values must be string (elastic#65875)
  Change default cert age limit value. (elastic#65918)
  [DOCS] Removed saved object options (elastic#66072)
  [SIEM] [Cases] Case API tests (elastic#65777)
  Add example of of local plugin installation (elastic#65986)
  skip flaky suite (elastic#65741)
  [SIEM][Detections] Restrict ML rule modification to ML Admins (elastic#65583)
  [Reporting/Test] Add Functional test for download CSV (elastic#65401)
  ...
jloleysens added a commit that referenced this pull request May 12, 2020
…ine-editor

* 'master' of github.com:elastic/kibana: (37 commits)
  [APM] Correct relative paths in scripts (#66159)
  [Uptime] Enable deselection of stale filters (#65523)
  [Drilldowns][chore] Remove some any's from components. Remove `PlaceContext` from components (#65854)
  [functional/services] import By/until from module (#66015)
  [Drilldowns][IE] fix welcome bar layout in IE (#65676)
  Inspect action shows on dashboard for every chart (#65998)
  Fix heigt calc in calc issue for ie11 (#66010)
  [Flights] Delay Bucket - Error notification on opening sample visualization (#66028)
  [SIEM] [Security] unified code structure phase 0 (#65965)
  [Maps] Organize layers into subfolders (#65513)
  skip flaky suite (#59849)
  Cleanup prefill and edit flow. (#66105)
  Fix major severity service map ring colors (#66124)
  [DOCS] Improves formatting in action types (#65932)
  [DOCS] APM Agent config: Setting values must be string (#65875)
  Change default cert age limit value. (#65918)
  [DOCS] Removed saved object options (#66072)
  [SIEM] [Cases] Case API tests (#65777)
  Add example of of local plugin installation (#65986)
  skip flaky suite (#65741)
  ...
smith added a commit that referenced this pull request May 12, 2020
Using `||` in the switch statement made it so "major" did not work, and we would get the border width but not the color. Change to splitting case statements.

Fixes #66081
smith added a commit that referenced this pull request May 12, 2020
Using `||` in the switch statement made it so "major" did not work, and we would get the border width but not the color. Change to splitting case statements.

Fixes #66081
@cauemarcondes cauemarcondes self-assigned this May 13, 2020
@cauemarcondes
Copy link
Contributor

Tested on:

  • Chrome ✅
  • FF ✅
  • Safari ✅

@cauemarcondes cauemarcondes added the apm:test-plan-done Pull request that was successfully tested during the test plan label May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:test-plan-7.8.0 apm:test-plan-done Pull request that was successfully tested during the test plan release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Highlighted node overrides ML severity color
6 participants