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

remove username from username_attributes in outputs schema #1636

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

josefaidt
Copy link
Contributor

Problem

in Cognito, username attributes are attributes that can be used in place of a username
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.CfnUserPool.html#usernameattributes

Issue number, if available:

Changes

removes username from list of valid username_attributes in the outputs schema

Corresponding docs PR, if applicable:

Validation

Checklist

  • If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
  • If this PR requires a change to the Project Architecture README, I have included that update in this PR.
  • If this PR requires a docs update, I have linked to that docs PR above.
  • If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

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

@josefaidt josefaidt requested a review from a team as a code owner June 11, 2024 15:52
Copy link

changeset-bot bot commented Jun 11, 2024

🦋 Changeset detected

Latest commit: 7a91959

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@aws-amplify/client-config Major
@aws-amplify/platform-core Major
@aws-amplify/backend Patch
@aws-amplify/backend-cli Patch
@aws-amplify/sandbox Patch
@aws-amplify/backend-deployer Patch
@aws-amplify/backend-output-storage Patch
@aws-amplify/backend-secret Patch
@aws-amplify/cli-core Patch
create-amplify Patch
@aws-amplify/deployed-backend-client Patch
@aws-amplify/model-generator Patch
@aws-amplify/schema-generator Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@edwardfoyle edwardfoyle left a comment

Choose a reason for hiding this comment

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

need to update api extract (run npm run update:api). Also, isn't this a breaking change?

@josefaidt
Copy link
Contributor Author

@edwardfoyle that command just loops for me :/ I have to kill my terminal to stop it
CleanShot 2024-06-12 at 14 30 20@2x

I put this as a patch because I don't think it's being used, but I may have overlooked something (cc @Amplifiyer )

@sobolk
Copy link
Member

sobolk commented Jun 17, 2024

need to update api extract (run npm run update:api). Also, isn't this a breaking change?

This is a breaking change. username should be deprecated, not removed. And recorded for removal next time we ship MV.

This is ugly, but leaving it as is won't hurt since we control the producer.

@edwardfoyle
Copy link
Contributor

@josefaidt

that command just loops for me :/ I have to kill my terminal to stop it

I think you need to build locally first npm run build && npm run update:api

@josefaidt josefaidt requested a review from a team as a code owner June 19, 2024 22:36
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