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

List admin accounts UI #303

Merged
merged 8 commits into from
Aug 14, 2019
Merged

Conversation

alex-chew
Copy link
Contributor

Description of changes:
This PR introduces UI and tests for listing accounts in the Admin user pool group.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.


/**
* Suppress React 16.8 act() warnings globally.
* The React team's fix won't be out of alpha until 16.9.0.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that 16.9.0 is out, and breaks nothing while obviating the need for this warning suppression utility. However, our Semantic UI React dependency (and perhaps others) uses features deprecated in 16.9.0, and so deprecation warnings appear during tests. I would prefer to wait until all of our dependencies are fully compatible with 16.9.0, before upgrading.

Copy link

@bejos-zz bejos-zz 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

render: ({ promoterIdentityPoolId, promoterEmailAddress }) =>
promoterIdentityPoolId
? `${promoterEmailAddress} (${promoterIdentityPoolId})`
: '',
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be empty string or throw / display error modal? This represents a pretty horrific edge case, right (we have a user with no identity pool ID or email address...)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not quite - there will always be at least one Account without a promoter, which is the initial Admin account. (There can be more if added via the Cognito dashboard, or carried forward during migration.)

@alex-chew alex-chew merged commit 4c30cce into awslabs:account-mgmt Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants