Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cascade_backrefs=False
:No longer needed after move to SQLAlchemy 2.0
https://docs.sqlalchemy.org/en/20/changelog/migration_14.html#cascade-backrefs-behavior-deprecated-for-removal-in-2-0
The helper checks if a transaction is active and begins one if not. There are 500+ instances where this helper is called. I'd like to first check that disabling it does not break transactional state; if this does not cause new session-related errors, I'll remove the function and the calls to it.
Ref: Towards SQLAlchemy 2.0: drop session autocommit setting #15421
If this does not break transactional state, this helper should beremoved completely.
How to test the changes?
(Select all options that apply)
License