-
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
[CCR] Fix reducer function when finding missing privileges #70158
[CCR] Fix reducer function when finding missing privileges #70158
Conversation
💚 Build SucceededBuild metrics
To update your PR or re-run it, just comment with: |
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
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.
Checked the codebase for other instances where we do this and all the others seem to have the return in the correct position 😬
Thanks for fixing @alisonelizabeth !
@alisonelizabeth it looks like we can backport this change to v7.8.1 too, it has the same code, but pre NP migration. |
Fixes #70000
The issue above describes how to test/reproduce the bug.
The
missingClusterPrivileges
reducer function incorrectly had the return statement inside the conditional, causing the following error:Cannot read property 'push' of undefined
.With fix:
Release note
This fixes a bug in Cross-Cluster Replication where the user was prompted with an error message when attempting to use the UI with missing cluster privileges. The user should now be prompted with a message indicating what privileges are missing.