Skip to content

[ML] Filtering runtime mappings in anomaly detection wizards#91534

Merged
jgowdyelastic merged 4 commits intoelastic:masterfrom
jgowdyelastic:filtering-runtime-fields-in-anomaly-detection-wizard
Feb 17, 2021
Merged

[ML] Filtering runtime mappings in anomaly detection wizards#91534
jgowdyelastic merged 4 commits intoelastic:masterfrom
jgowdyelastic:filtering-runtime-fields-in-anomaly-detection-wizard

Conversation

@jgowdyelastic
Copy link
Copy Markdown
Member

@jgowdyelastic jgowdyelastic commented Feb 16, 2021

Runtime mappings which are not used but in the job or the datafeed's aggregations are removed from the datafeed just before saving the job.

A copy of the datafeed is used for the save, so if the save fails or the user resets the wizard after saving, the original set of runtime mappings is still available.

A currently unused flag filterRuntimeMappingsOnSave has been added for a future UI control which will allow the user to disable this auto filtering of the mappings.

Related to #91168

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Copy Markdown
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

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
ml 1738 1739 +1

Async chunks

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

id before after diff
ml 6.3MB 6.3MB +2.5KB

History

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

@qn895
Copy link
Copy Markdown
Member

qn895 commented Feb 17, 2021

LGTM

Copy link
Copy Markdown
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 and LGTM

@jgowdyelastic jgowdyelastic added the auto-backport Deprecated - use backport:version if exact versions are needed label Feb 17, 2021
@jgowdyelastic jgowdyelastic merged commit d890d22 into elastic:master Feb 17, 2021
@jgowdyelastic jgowdyelastic deleted the filtering-runtime-fields-in-anomaly-detection-wizard branch February 17, 2021 17:25
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 17, 2021
…#91534)

* [ML] Filtering runtime mappings in anomaly detection wizards

* updating tests

* adding check for null when parsing aggs

* removing async from tests
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Backport successful

7.x / #91709

Successful backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Feb 17, 2021
…#91709)

* [ML] Filtering runtime mappings in anomaly detection wizards

* updating tests

* adding check for null when parsing aggs

* removing async from tests

Co-authored-by: James Gowdy <jgowdy@elastic.co>
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 Feature:Anomaly Detection ML anomaly detection :ml release_note:enhancement review v7.12.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants