Skip to content

feat: add wait argument to Model.delete_table #1270

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
merged 2 commits into from
May 30, 2025

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
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