-
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] Delete annotation directly from the index it is stored in #115328
[ML] Delete annotation directly from the index it is stored in #115328
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.
LGTM
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]
History
To update your PR or re-run it, just comment with: |
…ic#115328) Co-authored-by: Kibana Machine <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…) (#115539) Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Pete Harverson <[email protected]>
Summary
Fixes the approach used to delete an annotation so that it is deleted from the index that it is stored in.
Previously the
deleteAnnotation
function assumed that the annotation to be deleted was in the index that the annotations write alias currently points to. This assumption is incorrect as the annotation to be deleted could be in any one of the indices that the annotations read alias points to. The delete function now does an extra query against the read alias to obtain the index the annotation is stored in.Checklist
Fixes #113365