Skip to content

INTPYTHON-355 Remove transaction support #352

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 1 commit into from
Jul 31, 2025

Conversation

timgraham
Copy link
Collaborator

MongoDB's best practices for transactions ("use them only when needed") isn't compatible with how Django uses atomic() internally. Instead, a separate atomic() function for use in user code will be provided.

@timgraham timgraham force-pushed the transaction-revert branch 2 times, most recently from bfd3d8a to 7d40e47 Compare July 29, 2025 18:45
@timgraham timgraham changed the title INTPYTHON-355 Revert transaction support INTPYTHON-355 Remove transaction support Jul 29, 2025
@timgraham timgraham force-pushed the transaction-revert branch from 7d40e47 to a682561 Compare July 30, 2025 21:18
@timgraham timgraham requested a review from aclark4life July 30, 2025 21:42

def tearDown(self):
del connection.features.supports_transactions
del connection.features._supports_transactions
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is staying in for QE right or for both QE and future custom atomic ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Both

Copy link
Collaborator

@aclark4life aclark4life left a comment

Choose a reason for hiding this comment

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

Sad to see it go but LGTM! Thanks

@timgraham timgraham force-pushed the transaction-revert branch 2 times, most recently from 56b6640 to 07f078b Compare July 31, 2025 17:53
MongoDB's best practices for transactions ("use them only when needed")
isn't compatible with how Django uses atomic() internally. Instead, a
separate atomic() function for use in user code will be provided.

This reverts commits 4ca6c90 and
c7831c6.
@timgraham timgraham force-pushed the transaction-revert branch from 07f078b to d5aa1a7 Compare July 31, 2025 18:03
@timgraham timgraham merged commit d5aa1a7 into mongodb:main Jul 31, 2025
15 checks passed
@timgraham timgraham deleted the transaction-revert branch July 31, 2025 18:48
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.

3 participants