Skip to content

feat(idempotency): allow custom sdk clients in DynamoDBPersistenceLayer #2087

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

Merged

Conversation

heitorlessa
Copy link
Contributor

@heitorlessa heitorlessa commented Apr 5, 2023

Issue number: #2073

Summary

Changes

Please provide a summary of what's being changed

This PR adds a new constructor parameter boto3_client in DynamoDBPersistenceLayer. This unblocks customers wanting to use DynamoDB Local, LocalStack, or AWS SDK Stubbers more cleanly (no private attribute access).

It also unblocks the documentation PR where we're trying to provide an example of how to use DynamoDB Local for testing.

User experience

Please share what the user experience looks like before and after this change

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@heitorlessa heitorlessa requested a review from a team as a code owner April 5, 2023 14:10
@heitorlessa heitorlessa requested review from leandrodamascena and removed request for a team April 5, 2023 14:10
@boring-cyborg boring-cyborg bot added the tests label Apr 5, 2023
@pull-request-size pull-request-size bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 5, 2023
@heitorlessa heitorlessa changed the title feat(idempotency): allow custom sdk clients feat(idempotency): allow custom sdk clients in DynamoDBPersistenceLayer Apr 5, 2023
@github-actions github-actions bot added the feature New feature or functionality label Apr 5, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 5, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (99bcf80) 97.45% compared to head (c8d9cfe) 97.45%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2087   +/-   ##
========================================
  Coverage    97.45%   97.45%           
========================================
  Files          146      146           
  Lines         6748     6750    +2     
  Branches       477      478    +1     
========================================
+ Hits          6576     6578    +2     
  Misses         136      136           
  Partials        36       36           
Impacted Files Coverage Δ
...wertools/utilities/idempotency/persistence/base.py 99.39% <100.00%> (ø)
...ools/utilities/idempotency/persistence/dynamodb.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@heitorlessa
Copy link
Contributor Author

Walked @leandrodamascena through the changes in a peer review. Merging

Copy link
Contributor

@leandrodamascena leandrodamascena left a comment

Choose a reason for hiding this comment

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

LGTM!

@heitorlessa heitorlessa merged commit 50ac176 into aws-powertools:develop Apr 5, 2023
@heitorlessa heitorlessa deleted the feat/idempotency-sdk-client branch April 5, 2023 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or functionality size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants