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

[8.x] [ML] Anomaly Detection: Consolidate severity colors (#204803) #205407

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Jan 2, 2025

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## Summary

Part of elastic#140695.

We defined the hex codes for anomaly detection severity colors in
several places. This PR consolidates this and makes sure the hex codes
are defined in just one place. Note this PR doesn't change any of the
colors or styling related to anomaly detection, it is pure refactoring
to make future updates to these colors more easy.

- Renames `BLANK` to `UNKNOWN` to be in line with severity labels.
- Uses `ML_SEVERITY_COLORS.*` in test assertions so future color changes
won't need updating every assertion.
- Migrates all SCSS that made use of severity colors to emotion so it
can reuse `ML_SEVERITY_COLORS`. Therefor the SCSS based severity colors
get removed in this PR.

### Checklist

- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

(cherry picked from commit da8f012)

# Conflicts:
#	x-pack/platform/plugins/shared/ml/public/application/components/influencers_list/influencers_list_styles.ts
#	x-pack/platform/plugins/shared/ml/public/application/timeseriesexplorer/styles.ts
@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 2, 2025

💔 Build Failed

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 3.5MB 3.5MB +8.0B
ml 4.6MB 4.6MB -6.9KB
securitySolution 18.5MB 18.5MB -1000.0B
uptime 463.5KB 463.5KB +8.0B
total -7.8KB

History

@walterra
Copy link
Contributor Author

walterra commented Jan 3, 2025

/ci

@walterra walterra merged commit f15fea4 into elastic:8.x Jan 3, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants