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

fix: trigger analytics migration on update/configure notifications #11285

Merged
merged 2 commits into from
Oct 28, 2022
Merged

fix: trigger analytics migration on update/configure notifications #11285

merged 2 commits into from
Oct 28, 2022

Conversation

lazpavel
Copy link
Contributor

Description of changes

  • notifications update command is just an alias, the migration check should look for configure

Description of how you validated changes

  • manual test
  • unit test added

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Pull request labels are added

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

@lazpavel lazpavel requested a review from a team as a code owner October 28, 2022 18:50
@@ -5,7 +5,7 @@ import { invokeAnalyticsMigrations } from '../plugin-client-api-analytics';
* checks if the project has been migrated to the latest version
*/
export const migrationCheck = async (context: $TSContext): Promise<void> => {
if (['add', 'update', 'push'].includes(context.input.command)) {
if (['add', 'configure', 'push'].includes(context.input.command)) {
Copy link
Member

Choose a reason for hiding this comment

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

would it make sense to keep update in case of alias evolves to something different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@lazpavel lazpavel merged commit 0972ef9 into aws-amplify:dev Oct 28, 2022
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.

None yet

3 participants