-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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(diffDynamoDbGSI): ignore ordering of non_key_attributes in equali… #9988
Conversation
2de76c9
to
15402af
Compare
…ty check to stop forced reconstruction of GSI [fixes #hashicorp#3828]
Would love to see this merged. Is there any update? |
Can we please get this reviewed and merged? We are employing some not-so-pretty workarounds for this currently. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @shalka 👋 Thanks so much for this PR! It's off to a great start 👍 Just a couple moments around the use of a Set when calling the non_key_attributes
from the resource data. Please let me know if you have any additional questions or concerns regarding the changes.
Output of acceptance tests
--- FAIL: TestAccAWSDynamoDbTable_gsiUpdateNonKeyAttributes (102.32s) <-- should be fixed up
with the proposed changes as the update isn't taking place as expected in this test where the # of
non_key_attributes increases from 1 to 2
--- PASS: TestDiffDynamoDbGSI (0.04s)
--- PASS: TestAccAWSDynamoDbTable_streamSpecificationValidation (14.35s)
--- PASS: TestAccAWSDynamoDbTable_disappears (47.99s)
--- PASS: TestAccAWSDynamoDbTableItem_rangeKey (53.26s)
--- PASS: TestAccAWSDynamoDbTableItem_withMultipleItems (57.53s)
--- PASS: TestAccAWSDynamoDbTableItem_basic (60.85s)
--- PASS: TestAccAWSDynamoDbTable_basic (66.47s)
--- PASS: TestAccAWSDynamoDbTable_Ttl_Enabled (61.32s)
--- PASS: TestAccAWSDynamoDbTable_tags (80.00s)
--- PASS: TestAccAWSDynamoDbTable_attributeUpdateValidation (23.55s)
--- PASS: TestAccAWSDynamoDbTableItem_updateWithRangeKey (97.82s)
--- PASS: TestAccAWSDynamoDbTableItem_update (98.31s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode_PayPerRequestToProvisioned (101.90s)
--- PASS: TestAccAWSDynamoDbTable_streamSpecification (105.52s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode_GSI_PayPerRequestToProvisioned (110.05s)
--- PASS: TestAccAWSDynamoDbTable_gsiUpdateCapacity (112.09s)
--- PASS: TestAccAWSDynamoDbTable_enablePitr (115.27s)
--- PASS: TestAccAWSDynamoDbTable_Ttl_Disabled (68.40s)
--- PASS: TestAccAWSDynamoDbTable_disappears_PayPerRequestWithGSI (120.43s)
--- PASS: TestAccAWSDynamoDbTable_encryption (149.06s)
--- PASS: TestAccAWSDynamoDbTable_extended (294.61s)
--- PASS: TestAccAWSDynamoDbTable_Replica_Single (368.92s)
--- PASS: TestAccAWSDynamoDbTable_attributeUpdate (550.45s)
--- PASS: TestAccAWSDynamoDbTable_gsiUpdateOtherAttributes (604.70s)
--- PASS: TestAccAWSDynamoDbTable_Replica_Multiple (736.12s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode_GSI_ProvisionedToPayPerRequest (1339.53s)
--- PASS: TestAccAWSDynamoDbTable_BillingMode_ProvisionedToPayPerRequest (1359.85s)
Hi @shalka 👋 thanks again for this PR! Just dropping a note that I'll be continuing the work here, as our general response time from community PRs is 2 weeks, and hope to get these changes into an upcoming release of the provider :) if you have any questions, please let me know! |
Output of acceptance tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should certainly improve the situation. 🚀
This has been released in version 3.5.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
…ty check to stop forced reconstruction of GSI [fixes ##3828]
Community Note
Relates OR Closes #0000
Release note for CHANGELOG:
Output from acceptance testing: