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

Retain existing Cognito User Pool config #6519

Merged
merged 1 commit into from Aug 9, 2019

Conversation

pmuens
Copy link
Contributor

@pmuens pmuens commented Aug 8, 2019

What did you implement:

Closes #6499

Ensures that the existing Cognito User Pool Config is retained.

How did you implement it:

Fetch the current config and re-apply it to the params when updating the Cognito User Pool with the desired Trigger config.

How can we verify it:

  1. Create a new User Pool
  2. Add a tag
  3. Deploy the following serverless.yml service

The Trigger config should be updated. The tag should not be removed.

Otherwise you can also run the integration tests.

Todos:

Note: Run npm run test-ci to run all validation checks on proposed changes

  • Write tests and confirm existing functionality is not broken.
    Validate via npm test
  • Ensure there are no lint errors.
    Validate via npm run lint-updated
    Note: Some reported issues can be automatically fixed by running npm run lint:fix
  • Ensure introduced changes match Prettier formatting.
    Validate via npm run prettier-check-updated
    Note: All reported issues can be automatically fixed by running npm run prettify-updated
  • Make sure code coverage hasn't dropped
  • Provide verification config / commands / resources
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES
Is it a breaking change?: NO

@pmuens pmuens force-pushed the retain-cognito-user-pool-config branch from cd81b2e to f2a3fc9 Compare August 8, 2019 12:35
Copy link
Contributor

@medikoo medikoo 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!

Copy link

@hiramatsutaku hiramatsutaku left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@pmuens pmuens merged commit 42ba297 into master Aug 9, 2019
@pmuens pmuens deleted the retain-cognito-user-pool-config branch August 9, 2019 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User Pool Properties are removed after add trigger to existing a pool
3 participants