From d46056b7b6f2483a99723a0125b9a398f6228271 Mon Sep 17 00:00:00 2001 From: Danielle Adams Date: Wed, 27 Apr 2022 19:45:19 -0400 Subject: [PATCH] feat: add migration docs url to warning --- .../src/__tests__/utils/warnings.test.ts | 2 +- packages/amplify-graphql-auth-transformer/src/utils/warnings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amplify-graphql-auth-transformer/src/__tests__/utils/warnings.test.ts b/packages/amplify-graphql-auth-transformer/src/__tests__/utils/warnings.test.ts index 16d605b8914..4d275ac5000 100644 --- a/packages/amplify-graphql-auth-transformer/src/__tests__/utils/warnings.test.ts +++ b/packages/amplify-graphql-auth-transformer/src/__tests__/utils/warnings.test.ts @@ -111,7 +111,7 @@ describe('showDefaultIdentityClaimWarning', () => { ' WARNING: Amplify CLI will change the default identity claim from \'username\' ' + 'to use \'sub::username\'. To continue using only usernames, set \'identityClaim: "username"\' on your ' + '\'owner\' rules on your schema. The default will be officially switched with v9.0.0. To read ' - + 'more: https://link.to/docs-and-migration-gudes', + + 'more: https://docs.amplify.aws/cli/migration/identity-claim-changes/', ); }); }); diff --git a/packages/amplify-graphql-auth-transformer/src/utils/warnings.ts b/packages/amplify-graphql-auth-transformer/src/utils/warnings.ts index 876d51e2e3f..02cbfff4d23 100644 --- a/packages/amplify-graphql-auth-transformer/src/utils/warnings.ts +++ b/packages/amplify-graphql-auth-transformer/src/utils/warnings.ts @@ -19,7 +19,7 @@ export const showDefaultIdentityClaimWarning = (context: TransformerContextProvi ' WARNING: Amplify CLI will change the default identity claim from \'username\' ' + 'to use \'sub::username\'. To continue using only usernames, set \'identityClaim: "username"\' on your ' + '\'owner\' rules on your schema. The default will be officially switched with v9.0.0. To read ' - + 'more: https://link.to/docs-and-migration-gudes', + + 'more: https://docs.amplify.aws/cli/migration/identity-claim-changes/', ); } };