-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Conversation
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this 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 = |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated here 0175531
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Distributable file count
History
To update your PR or re-run it, just comment with: |
…ngs (elastic#86407) Co-authored-by: Kibana Machine <[email protected]>
…ngs (elastic#86407) Co-authored-by: Kibana Machine <[email protected]>
…_mappings (#86407) (#86816) Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
…e_mappings (#86407) (#86817) Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
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:
Checklist