Skip to content

Use engine.begin() for DELETE operation#284

Merged
cdolfi merged 2 commits intomainfrom
Phanindra899/fix-engine-begin-util
May 4, 2026
Merged

Use engine.begin() for DELETE operation#284
cdolfi merged 2 commits intomainfrom
Phanindra899/fix-engine-begin-util

Conversation

@MoralCode
Copy link
Copy Markdown
Contributor

Description
This is a change made by @Phanindra899 originally in augurlabs/augur#3799
It has been rebased

This PR updates transaction handling by applying engine.begin() to a data-modifying DELETE query in tasks.py, ensuring proper commit/rollback behavior in line with SQLAlchemy 2.0 semantics.

The previous change applied to a read-only query in util.py has been reverted, as transaction handling is not required for SELECT operations.

The change is intentionally minimal and scoped to a single DELETE operation to ensure safety and ease of review.

This PR contributes to #230

Notes for Reviewers

Signed commits

  • Yes, I signed my commits. (on behalf of the original author whose commits were signed)

Signed-off-by: Phanindra899 <p14410766@gmail.com>
…n read-only query

Signed-off-by: Phanindra899 <p14410766@gmail.com>
@MoralCode MoralCode changed the title Phanindra899/fix engine begin util Use engine.begin() for DELETE operation May 2, 2026
Copy link
Copy Markdown
Contributor

@cdolfi cdolfi left a comment

Choose a reason for hiding this comment

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

lgtm

@cdolfi cdolfi merged commit 6f3d7c9 into main May 4, 2026
16 checks passed
@Phanindra899
Copy link
Copy Markdown
Contributor

Thank you for the review and merge!

I enjoyed working on this and would like to continue contributing.
I’ll look into other issues and improvements I can help with.

Please let me know if there are any areas that need attention.

1 similar comment
@Phanindra899
Copy link
Copy Markdown
Contributor

Thank you for the review and merge!

I enjoyed working on this and would like to continue contributing.
I’ll look into other issues and improvements I can help with.

Please let me know if there are any areas that need attention.

@cdolfi
Copy link
Copy Markdown
Contributor

cdolfi commented May 4, 2026

@Phanindra899 Yes thank you for contributing and look forward to seeing future PRs. If you have any questions feel free to connect on the CHAOSS slack in the #wg-collectoss-8knot channel or comment on the issue

@MoralCode MoralCode deleted the Phanindra899/fix-engine-begin-util branch May 4, 2026 17:34
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