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] Fixes anomaly charts when partition field contains an empty string #168102

Merged

Conversation

darnautov
Copy link
Contributor

@darnautov darnautov commented Oct 5, 2023

Summary

Fixes #168067.

Fixes anomaly charts fetching by replacing logical OR operator with nullish coalescing.

image

Checklist

@darnautov darnautov requested a review from a team as a code owner October 5, 2023 13:44
@darnautov darnautov added Team:ML Team label for ML (also use :ml) v8.11.0 labels Oct 5, 2023
@darnautov darnautov requested a review from qn895 October 5, 2023 13:44
@darnautov darnautov self-assigned this Oct 5, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@qn895
Copy link
Member

qn895 commented Oct 5, 2023

Tested and LGTM 🎉

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

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

cc @darnautov

@darnautov darnautov merged commit efa4e76 into elastic:main Oct 6, 2023
32 checks passed
@darnautov darnautov deleted the ml-168067-fix-anomaly-charts-empty-string branch October 6, 2023 07:49
@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 pushed a commit to kibanamachine/kibana that referenced this pull request Oct 6, 2023
…elastic#168102)

## Summary

Fixes elastic#168067.

Fixes anomaly charts fetching by replacing logical OR operator with
nullish coalescing.

![image](https://github.com/elastic/kibana/assets/5236598/e8e43c49-507c-4725-9e1a-f412e3bdbe98)

### 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 efa4e76)
kibanamachine added a commit that referenced this pull request Oct 6, 2023
… string (#168102) (#168180)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[ML] Fix anomaly charts when partition field contains an empty string
(#168102)](#168102)

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

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

<!--BACKPORT [{"author":{"name":"Dima
Arnautov","email":"dmitrii.arnautov@elastic.co"},"sourceCommit":{"committedDate":"2023-10-06T07:49:25Z","message":"[ML]
Fix anomaly charts when partition field contains an empty string
(#168102)\n\n## Summary\r\n\r\nFixes #168067.\r\n\r\nFixes anomaly
charts fetching by replacing logical OR operator with\r\nnullish
coalescing.\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/e8e43c49-507c-4725-9e1a-f412e3bdbe98)\r\n\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":"efa4e76203a1c20977994559b0e57c09d7751310","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix",":ml","Feature:Anomaly
Detection","Team:ML","v8.11.0","v8.12.0"],"number":168102,"url":"#168102
Fix anomaly charts when partition field contains an empty string
(#168102)\n\n## Summary\r\n\r\nFixes #168067.\r\n\r\nFixes anomaly
charts fetching by replacing logical OR operator with\r\nnullish
coalescing.\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/e8e43c49-507c-4725-9e1a-f412e3bdbe98)\r\n\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":"efa4e76203a1c20977994559b0e57c09d7751310"}},"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":"#168102
Fix anomaly charts when partition field contains an empty string
(#168102)\n\n## Summary\r\n\r\nFixes #168067.\r\n\r\nFixes anomaly
charts fetching by replacing logical OR operator with\r\nnullish
coalescing.\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/5236598/e8e43c49-507c-4725-9e1a-f412e3bdbe98)\r\n\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":"efa4e76203a1c20977994559b0e57c09d7751310"}}]}]
BACKPORT-->

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
@szabosteve szabosteve changed the title [ML] Fix anomaly charts when partition field contains an empty string [ML] Fixes anomaly charts when partition field contains an empty string Oct 12, 2023
dej611 pushed a commit to dej611/kibana that referenced this pull request Oct 17, 2023
…elastic#168102)

## Summary

Fixes elastic#168067.

Fixes anomaly charts fetching by replacing logical OR operator with
nullish coalescing.


![image](https://github.com/elastic/kibana/assets/5236598/e8e43c49-507c-4725-9e1a-f412e3bdbe98)


### 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Missing anomaly charts on the Overall swim lane selection
6 participants