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] AIOps: Fixes Data View runtime fields support in Change point detection UI #168249

Merged

Conversation

darnautov
Copy link
Contributor

@darnautov darnautov commented Oct 6, 2023

Summary

Fixes #162212

If a Data View runtime field is used as a metric or split field, appends a runtime_mappings to the search request.

Checklist

@darnautov darnautov added release_note:fix :ml Team:ML Team label for ML (also use :ml) Feature:ML/AIOps ML AIOps features: Change Point Detection, Log Pattern Analysis, Log Rate Analysis v8.11.0 v8.12.0 labels Oct 6, 2023
@darnautov darnautov self-assigned this Oct 6, 2023
@darnautov darnautov requested a review from a team as a code owner October 6, 2023 15:26
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@darnautov darnautov requested a review from qn895 October 6, 2023 17:28
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 fixed in the change point detection page in AIOps Labs.
Is the runtime mapping config passed along in the embeddable? When I tried adding the change point detection charts to a dashboard, I see the 'No change points found' message inside Dashboard.

@darnautov
Copy link
Contributor Author

@elasticmachine merge upstream

@darnautov
Copy link
Contributor Author

Tested and fixed in the change point detection page in AIOps Labs. Is the runtime mapping config passed along in the embeddable? When I tried adding the change point detection charts to a dashboard, I see the 'No change points found' message inside Dashboard.

@peteharverson fixed by f889cc7

@qn895
Copy link
Member

qn895 commented Oct 9, 2023

Code LGTM 🎉

@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
aiops 586.7KB 587.2KB +536.0B

History

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

cc @darnautov

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 for attaching to a dashboard or case and LGTM

@darnautov darnautov merged commit 9f06e30 into elastic:main Oct 10, 2023
@darnautov darnautov deleted the ml-168212-change-point-runtime-field branch October 10, 2023 14:55
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 10, 2023
…ction UI (elastic#168249)

## Summary

Fixes [elastic#162212](elastic#168212)

If a Data View runtime field is used as a metric or split field, appends
a `runtime_mappings` to the search request.

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 9f06e30)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.11

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 Oct 10, 2023
…nt detection UI (#168249) (#168491)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[ML] AIOps: Fix Data View runtime fields support in Change point
detection UI (#168249)](#168249)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dima
Arnautov","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-10T14:55:03Z","message":"[ML]
AIOps: Fix Data View runtime fields support in Change point detection UI
(#168249)\n\n## Summary\r\n\r\nFixes
[#162212](https://github.com/elastic/kibana/issues/168212)\r\n\r\nIf a
Data View runtime field is used as a metric or split field, appends\r\na
`runtime_mappings` to the search request.\r\n\r\n### Checklist\r\n\r\n-
[ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"9f06e30a4e9addf1db6a3e78a11103d644e37995","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Team:ML","Feature:ML/AIOps","v8.11.0","v8.12.0"],"number":168249,"url":"https://github.com/elastic/kibana/pull/168249","mergeCommit":{"message":"[ML]
AIOps: Fix Data View runtime fields support in Change point detection UI
(#168249)\n\n## Summary\r\n\r\nFixes
[#162212](https://github.com/elastic/kibana/issues/168212)\r\n\r\nIf a
Data View runtime field is used as a metric or split field, appends\r\na
`runtime_mappings` to the search request.\r\n\r\n### Checklist\r\n\r\n-
[ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"9f06e30a4e9addf1db6a3e78a11103d644e37995"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168249","number":168249,"mergeCommit":{"message":"[ML]
AIOps: Fix Data View runtime fields support in Change point detection UI
(#168249)\n\n## Summary\r\n\r\nFixes
[#162212](https://github.com/elastic/kibana/issues/168212)\r\n\r\nIf a
Data View runtime field is used as a metric or split field, appends\r\na
`runtime_mappings` to the search request.\r\n\r\n### Checklist\r\n\r\n-
[ ] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"9f06e30a4e9addf1db6a3e78a11103d644e37995"}}]}]
BACKPORT-->

Co-authored-by: Dima Arnautov <[email protected]>
@szabosteve szabosteve changed the title [ML] AIOps: Fix Data View runtime fields support in Change point detection UI [ML] AIOps: Fixes Data View runtime fields support in Change point detection UI Oct 12, 2023
dej611 pushed a commit to dej611/kibana that referenced this pull request Oct 17, 2023
…ction UI (elastic#168249)

## Summary

Fixes [elastic#162212](elastic#168212)

If a Data View runtime field is used as a metric or split field, appends
a `runtime_mappings` to the search request.

### Checklist

- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:ML/AIOps ML AIOps features: Change Point Detection, Log Pattern Analysis, Log Rate Analysis :ml release_note:fix Team:ML Team label for ML (also use :ml) v8.11.0 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] AIOps: Data View runtime field as a split field for Change point detection
6 participants