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

DynamoDB: Support ReturnValuesOnConditionCheckFailure for all op types in transact_write_items #8522

Merged
merged 1 commit into from
Feb 2, 2025

Conversation

cameron-toy
Copy link
Contributor

Fixes #8516

Tested locally and in AWS via MOTO_TEST_ALLOW_AWS_REQUEST flag

@cameron-toy
Copy link
Contributor Author

Updated branch to fix linting issue

Copy link

codecov bot commented Feb 2, 2025

Codecov Report

Attention: Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.62%. Comparing base (69a3669) to head (e447ca8).
Report is 24 commits behind head on master.

Files with missing lines Patch % Lines
moto/dynamodb/models/__init__.py 92.59% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8522      +/-   ##
==========================================
- Coverage   92.63%   92.62%   -0.01%     
==========================================
  Files        1224     1229       +5     
  Lines      105980   106399     +419     
==========================================
+ Hits        98170    98555     +385     
- Misses       7810     7844      +34     
Flag Coverage Δ
servertests 27.93% <0.00%> (+0.17%) ⬆️
unittests 92.60% <92.59%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

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

Nice! Looks like this simplifies the implementation quite a bit. Thank you for this PR @cameron-toy!

@bblommers bblommers added this to the 5.0.28 milestone Feb 2, 2025
@bblommers bblommers merged commit eecc03b into getmoto:master Feb 2, 2025
53 checks passed
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.

DynamoDB: transact_write_items does not return Item in CancellationReason (with example)
2 participants