amplify-category-api icon indicating copy to clipboard operation
amplify-category-api copied to clipboard

fix(api): handle attribute type change on gsi

Open sundersc opened this issue 1 year ago • 0 comments

Description of changes

Fix the bug: Attribute type changes are not reflected in amplify managed tables.

To resolve this, we will delete all the indexes referencing the attribute with type changes and recreate them.

CDK / CloudFormation Parameters Changed

NA

Issue #, if available

NA

Description of how you validated changes

  • Manual test
  • New E2E test

Checklist

  • [x] PR description included
  • [x] yarn test passes
  • [x] 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
  • [ ] Any CDK or CloudFormation parameter changes are called out explicitly

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

sundersc avatar May 09 '24 20:05 sundersc