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] Fix error callout for Anomaly detection jobs using runtime_mappings #86407

Merged
merged 7 commits into from
Dec 22, 2020

Conversation

qn895
Copy link
Member

@qn895 qn895 commented Dec 18, 2020

Summary

This PR fixes issues with the Anomaly explorer chart showing empty when the job uses a runtime field when model plot is not enabled. Changes include:

  • Fix Anomaly chart so it shows up correctly when model plot is enabled

Screen Shot 2020-12-17 at 17 51 37

  • Show a warning call out in Anomaly chart when model plot is off

Screen Shot 2020-12-17 at 17 51 09

  • Completely disable the Single Metric Viewer with message

Screen Shot 2020-12-17 at 17 49 38

  • Fix issue with Single Metric Viewer redirecting to another job without any warning/toast message

Screen Shot 2020-12-17 at 17 50 17

  • Adds spacer

Checklist

@qn895 qn895 added the :ml label Dec 18, 2020
@qn895 qn895 self-assigned this Dec 18, 2020
@qn895 qn895 added bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v8.0.0 labels Dec 18, 2020
@qn895 qn895 marked this pull request as ready for review December 18, 2020 00:06
@qn895 qn895 requested a review from a team as a code owner December 18, 2020 00:06
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

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 and LGTM

@@ -110,6 +110,16 @@ export function isSourceDataChartableForDetector(job: CombinedJob, detectorIndex
}
}
}

// We also cannot plot the source data if they datafeed uses any field defined by runtime_mappings
const runtimeMappings =
Copy link
Member

Choose a reason for hiding this comment

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

a lot of this code is duplicated, it might be worth creating a hasRuntimeMappings function which returns a boolean which is used in both of these functions?

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated here 0175531

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

LGTM

@qn895
Copy link
Member Author

qn895 commented Dec 22, 2020

@elasticmachine merge upstream

@qn895 qn895 closed this Dec 22, 2020
@qn895 qn895 deleted the ml-disable-scripted-fields branch December 22, 2020 16:01
@qn895 qn895 restored the ml-disable-scripted-fields branch December 22, 2020 16:08
@qn895 qn895 reopened this Dec 22, 2020
@kibanamachine
Copy link
Contributor

💚 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 7.0MB 7.0MB +792.0B

Distributable file count

id before after diff
default 47144 47904 +760

History

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

@qn895 qn895 merged commit 61eb83b into elastic:master Dec 22, 2020
@qn895 qn895 deleted the ml-disable-scripted-fields branch December 22, 2020 18:22
qn895 added a commit to qn895/kibana that referenced this pull request Dec 22, 2020
qn895 added a commit to qn895/kibana that referenced this pull request Dec 22, 2020
qn895 added a commit that referenced this pull request Dec 22, 2020
…_mappings (#86407) (#86816)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
qn895 added a commit that referenced this pull request Dec 23, 2020
…e_mappings (#86407) (#86817)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Anomaly Detection ML anomaly detection :ml release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants