Skip to content

Conversation

@ryancausey
Copy link
Contributor

This adds a wait argument that will make the delete_table call block until the DynamoDB table is fully deleted if set to True. It defaults to False to not break the existing behavior.

@ryancausey
Copy link
Contributor Author

ryancausey commented May 21, 2025

@ikonst do I need to open an issue for this PR or is this good enough to be reviewed on its own? I was trying to integrate PynamoDB models into FactoryBoy and mimic the DjangoORM behavior of dropping and re-creating the db on each test, but found the wait argument missing from the delete_table call.

@ikonst
Copy link
Contributor

ikonst commented May 21, 2025

No need for an issue ;) I'll get to it soon!

@ryancausey ryancausey force-pushed the feat/add-wait-for-delete-table branch from ba5bb5b to 1413852 Compare May 21, 2025 20:41
@ryancausey ryancausey force-pushed the feat/add-wait-for-delete-table branch from 1413852 to 23c0eff Compare May 23, 2025 23:07
@ryancausey ryancausey requested a review from ikonst May 23, 2025 23:10
@ryancausey
Copy link
Contributor Author

@ikonst not sure if GitHub automatically pings you when I request a review, but this is ready for re-review.

@ikonst
Copy link
Contributor

ikonst commented May 29, 2025

Can you also update docs/release_notes.rst? I assume for version 6.1.0...

This adds a `wait` argument that will make the `delete_table` call block
until the DynamoDB table is fully deleted if set to `True`. It defaults
to `False` to not break the existing behavior.
@ryancausey ryancausey force-pushed the feat/add-wait-for-delete-table branch from 23c0eff to d7676cc Compare May 30, 2025 02:27
@ryancausey
Copy link
Contributor Author

@ikonst release notes added.

@ikonst ikonst merged commit a3ee0db into pynamodb:master May 30, 2025
13 checks passed
@ryancausey ryancausey deleted the feat/add-wait-for-delete-table branch June 14, 2025 04:55
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.

2 participants