Skip to content

[ML] Fixes anomalies table sort behavior when sorting on severity#40600

Merged
peteharverson merged 1 commit intoelastic:masterfrom
peteharverson:ml-anomalies-table-severity-sorting
Jul 9, 2019
Merged

[ML] Fixes anomalies table sort behavior when sorting on severity#40600
peteharverson merged 1 commit intoelastic:masterfrom
peteharverson:ml-anomalies-table-severity-sorting

Conversation

@peteharverson
Copy link
Contributor

@peteharverson peteharverson commented Jul 9, 2019

Summary

Fixes the sort behavior of the anomalies table when sorting on the severity column and switching the aggregation interval to 'Show all'.

Recent changes made to EuiInMemoryTable in elastic/eui#2044 tied the sorting behavior to the name property of a column. The name of the severity column changed from max severity to severity if the aggregation interval was changed to 'Show all', so if the table was being sorted on the severity column, a change to the name of the column would break the sorting behavior.

With changes to the props of an EuiInMemoryTable after first render not being recommended, this PR fixes the name of the column to severity irrespective of the aggregation interval setting.

image

Also removes the sortable prop from the Actions column which was causing console errors as this property should not be provided to EuiInMemoryTable for columns without a field prop.

Checklist

For maintainers

Fixes #40435

@peteharverson peteharverson added review :ml Feature:Anomaly Detection ML anomaly detection v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.3.0 v7.4.0 labels Jul 9, 2019
@peteharverson peteharverson requested a review from a team as a code owner July 9, 2019 09:52
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Anomaly Detection ML anomaly detection :ml release_note:skip Skip the PR/issue when compiling release notes review v7.3.0 v7.4.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ML] Anomalies table - sorting different after interval change

4 participants