Skip to content

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

Merged
legrego merged 3 commits intoelastic:spaces-phase-1from
legrego:update-roles-screen-spaces
Jul 20, 2018
Merged

[Spaces] - Update Roles screen to use public API#21031
legrego merged 3 commits intoelastic:spaces-phase-1from
legrego:update-roles-screen-spaces

Conversation

@legrego
Copy link
Copy Markdown
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 Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// label Jul 20, 2018
@legrego legrego requested a review from kobelb July 20, 2018 13:41
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@kobelb
Copy link
Copy Markdown
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.

};

idPrefix = () => `${this.props.rbacApplication}_`;
idPrefix = () => `id_`;
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants