-
Notifications
You must be signed in to change notification settings - Fork 916
Introduce the possibility to specify returnValuesOnConditionCheckFailure in DynamoDB Enhanced operations #4708
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
Conversation
…e related changes (aws#4442)
@breader124 thank you for the PR, this is a highly requested feature, we'll review it as soon as we can. |
…onCheckFailure-to-dynamodb-enhanced
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.
Looks good.
SonarCloud Quality Gate failed.
|
AWS-SDK build for JDK-21 does not show up on PR, but succeeds |
Failed checks belong to incorrectly triggered codebuilds. All checks pass, verified in codebuild |
Motivation and Context
This change is required, because DynamoDB Enhanced library doesn't support returnValuesOnConditionCheckFailure parameter introduced recently in this announcement. Originally the request to introduce changes was reported in scope of #4442
Modifications
In order to add the possibility to specify returnValuesOnConditionCheckFailure and handle it properly I've modified (Put|Update|Delete)ItemEnhancedRequest and (Put|Update|Delete)ItemOperation classes. Then I've modified unit test classes associated with the ones mentioned above. At the very end I've modified both
CrudWithResponseIntegrationTest
andAsyncCrudWithResponseIntegrationTest
to cover introduced changes with integration tests.Testing
I've implemented both unit and integration tests executed against real DynamoDB table to cover the changes. All tests passed locally.
Types of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License