-
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] Fixing annotations alias checks #58722
[ML] Fixing annotations alias checks #58722
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
I think this is actually a sign of another bug, alluded to in "We're likely going to have to make some improvements to how Security handles aliases" in elastic/elasticsearch#52304 (comment). Logically the problem being fixed here should have happened both with security enabled and disabled. /cc @jaymode and @gwbrown to make sure your plans for elastic/elasticsearch#52304 cover this. The discrepancy happened when checking for the existence of an alias by asking if it is an alias of any index:
|
@elasticmachine merge upstream |
Thanks @droberts195, I'll make sure we have integration tests for those scenarios so that they behave the same. |
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
49a795c
to
a7aedd8
Compare
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
Fixes bug caused by the changing of
ml-annotations-read
andml-annotations-write
to hidden indices (elastic/elasticsearch#52423) which made it impossible to create annotations when security is disabled.When calling
indices.existsAlias
we now need to specifyindex
andname
.