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

[Spaces] - Update Roles screen to use public API #21031

Merged
merged 3 commits into from
Jul 20, 2018

Conversation

legrego
Copy link
Member

@legrego legrego commented Jul 20, 2018

This PR updates the new Role Management screen to use the public role API introduced as part of #20732.

Additionally, this updates the breadcrumb nav for Spaces and Role management screens to be consistent with the nav introduced in #20739.

There are a couple of visual glitches in this PR which are a result of current defects on master, so they can be safely ignored for the time being.

@legrego legrego added the Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! label Jul 20, 2018
@legrego legrego requested a review from kobelb July 20, 2018 13:41
@elasticmachine
Copy link
Contributor

💔 Build Failed

@kobelb
Copy link
Contributor

kobelb commented Jul 20, 2018

If you edit a role with a "Granted documents query", I'm seeing the toggle default to the wrong state.

@@ -27,7 +26,7 @@ export class KibanaPrivileges extends Component {
onChange: PropTypes.func.isRequired,
};

idPrefix = () => `${this.props.rbacApplication}_`;
idPrefix = () => `id_`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need the idPrefix? Does it come into play later?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may not -- I have another WIP branch that'll butcher a lot of this PR anyway. This is just a stopgap to get the form working again against the new API.

@kobelb
Copy link
Contributor

kobelb commented Jul 20, 2018

I'm guessing the "Granted documents query" behavior was likely here before this PR, so if you'd like to fix this in another PR, then LGTM!

Copy link
Contributor

@kobelb kobelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@legrego legrego merged commit b6d9ec2 into elastic:spaces-phase-1 Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants