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

[ML] Fixes outlier detection results exploration color legend display. #129058

Merged
merged 3 commits into from
Apr 1, 2022

Conversation

walterra
Copy link
Contributor

Summary

Fixes #127119.

Fixes the display of the color legend for the outlier results table. The check to display the legend was based on just checking if the first row on display had feature influence information. However, depending on the jobs results, not every row might be populated with feature influence information. This PR fixes it by displaying the color legend in any case when feature influence calculation is enabled and calculating the necessary featureCount value by looking at all available rows instead of just the first row. Unit tests have been added for the getFeatureCount() function.

Checklist

@walterra walterra added bug Fixes for quality problems that affect the customer experience release_note:fix :ml Feature:Data Frame Analytics ML data frame analytics features v8.2.0 v8.3.0 labels Mar 31, 2022
@walterra walterra requested a review from a team as a code owner March 31, 2022 12:37
@walterra walterra self-assigned this Mar 31, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@walterra walterra requested a review from darnautov April 1, 2022 07:51
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

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
ml 3.3MB 3.3MB -63.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
ml 102 101 -1

Total ESLint disabled count

id before after diff
ml 105 104 -1

History

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

cc @walterra

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested latest changes and LGTM

Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

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

LGTM

@walterra walterra added the auto-backport Deprecated - use backport:version if exact versions are needed label Apr 1, 2022
@walterra walterra merged commit 2c9d607 into elastic:main Apr 1, 2022
@walterra walterra deleted the ml-fix-outlier-detection-legend branch April 1, 2022 16:00
kibanamachine pushed a commit that referenced this pull request Apr 1, 2022
…color legend display. (#129058)

Fixes the display of the color legend for the outlier results table. The check to display the legend was based on just checking if the first row on display had feature influence information. However, depending on the jobs results, not every row might be populated with feature influence information. This PR fixes it by displaying the color legend in any case when feature influence calculation is enabled and calculating the necessary featureCount value by looking at all available rows instead of just the first row. Unit tests have been added for the getFeatureCount() function.

(cherry picked from commit 2c9d607)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Apr 1, 2022
…color legend display. (#129058) (#129222)

Fixes the display of the color legend for the outlier results table. The check to display the legend was based on just checking if the first row on display had feature influence information. However, depending on the jobs results, not every row might be populated with feature influence information. This PR fixes it by displaying the color legend in any case when feature influence calculation is enabled and calculating the necessary featureCount value by looking at all available rows instead of just the first row. Unit tests have been added for the getFeatureCount() function.

(cherry picked from commit 2c9d607)

Co-authored-by: Walter Rafelsberger <walter@elastic.co>
@lcawl lcawl changed the title [ML] Data Frame Analytics: Fix Outlier detection results exploration color legend display. [ML] Fixes outlier detection results exploration color legend display. Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience Feature:Data Frame Analytics ML data frame analytics features :ml release_note:fix v8.2.0 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Outlier detection - result legend disappears on column toggle
6 participants