-
Notifications
You must be signed in to change notification settings - Fork 79
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
Allow index name patterns in Privileges index fields #3127
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
That's unfortunate 😓 I recently changed these from Context: I have to think about how I want to proceed with that. It seems like the documentation is wrong about only mentioning |
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 for most static clients this should change nothing since we already simplify this union as an array
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
Could we please change this types to use That would give us some time to think about these special types that carry specific semantics, without breaking the .NET client. IMO we should model these differences in the Spec to some extend in order to allow generators to produce better code. In this particular case, We had similar candidates in the past where the typing is the same, but the semantics are different. I remember e.g. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
a4528ad
to
f584d49
Compare
Thanks Florian, please take another look. |
Following you can find the validation results for the APIs you have changed.
You can validate these APIs yourself by using the |
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.
Thank you! This looks good now 🙂
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.x 8.x
# Navigate to the new working tree
cd .worktrees/backport-8.x
# Create a new branch
git switch --create backport-3127-to-8.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 dd55c46bfe8334f57dfd831b56197ed3574a8a8b
# Push it to GitHub
git push --set-upstream origin backport-3127-to-8.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.x Then, create a pull request where the |
(cherry picked from commit dd55c46)
Motivated by this YAML test I realized that
index
in various privileges classes can always be an index pattern, ie. a string.For references, here is how IndexName and Indices are defined:
This fixes
security.bulk_put_role
, as can be tested withmake validate api=security.bulk_put_role branch=main
.