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

Adds disassociate functionality and an empty state for Sys Admin #7183

Conversation

AlexSCorey
Copy link
Member

@AlexSCorey AlexSCorey commented May 28, 2020

SUMMARY

This addresses #7104 and #7102. It add's functionality to disassociate a role in user/team -> access

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • UI
AWX VERSION
ADDITIONAL INFORMATION

disassociate

@AlexSCorey AlexSCorey force-pushed the 7104-UserTeamsDisassociate branch from 259d778 to cd0e7b7 Compare May 28, 2020 15:08
@AlexSCorey AlexSCorey changed the title Adds disassociate functionality and an empty state for Sys Admin [WIP]Adds disassociate functionality and an empty state for Sys Admin May 28, 2020
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@AlexSCorey AlexSCorey force-pushed the 7104-UserTeamsDisassociate branch from cd0e7b7 to 45b9494 Compare May 28, 2020 19:50
@AlexSCorey AlexSCorey changed the title [WIP]Adds disassociate functionality and an empty state for Sys Admin Adds disassociate functionality and an empty state for Sys Admin May 28, 2020
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

Copy link
Contributor

@jlmitch5 jlmitch5 left a comment

Choose a reason for hiding this comment

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

LGTM! just a couple test name changes

@@ -42,4 +47,23 @@ describe('<TeamAccessListItem/>', () => {
wrapper.find('PFDataListCell[aria-label="resource role"]').text()
).toContain('Admin');
});
test('should actionable chip', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this might better read "should render deletable chip"

@@ -42,4 +44,23 @@ describe('<UserAccessListItem/>', () => {
wrapper.find('PFDataListCell[aria-label="resource role"]').text()
).toContain('Admin');
});
test('should actionable chip', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

same thing with the name

@AlexSCorey AlexSCorey force-pushed the 7104-UserTeamsDisassociate branch from 45b9494 to 15d6c5f Compare June 2, 2020 14:17
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@dsesami dsesami self-requested a review June 2, 2020 17:02
{i18n._(t`System Administrator`)}
</Title>
<EmptyStateBody>
{i18n._(t`System administrators have access to all permissions.`)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rephrase this? It's understandable, but I want to be more specific. How about "System administrators have full permissions and access".

Copy link
Contributor

@dsesami dsesami left a comment

Choose a reason for hiding this comment

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

Looks good. Tried this with a variety of permissions. My only comment is the non-blocking text change above.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit fb8b902 into ansible:devel Jun 3, 2020
@AlexSCorey AlexSCorey mentioned this pull request Jun 8, 2020
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants