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

[CCR] Fix reducer function when finding missing privileges #70158

Merged

Conversation

alisonelizabeth
Copy link
Contributor

@alisonelizabeth alisonelizabeth commented Jun 28, 2020

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:
Screen Shot 2020-06-28 at 12 54 50 PM

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.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

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

@alisonelizabeth alisonelizabeth marked this pull request as ready for review June 29, 2020 02:00
@alisonelizabeth alisonelizabeth added the Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more label Jun 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

Copy link
Contributor

@jloleysens jloleysens left a 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 !

@jloleysens
Copy link
Contributor

@alisonelizabeth it looks like we can backport this change to v7.8.1 too, it has the same code, but pre NP migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:CCR and Remote Clusters release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.8.1 v7.9.0 v8.0.0
Projects
None yet
4 participants