fix(MemberService): wrap multi-step writes in database transactions #203

Merged
shahondin1624 merged 2 commits from fix/missing-database-transactions into main 2026-04-29 22:11:03 +02:00
Owner

Add IDBConnection dependency to MemberService and wrap create(), update(), and softDelete() in transactions (beginTransaction/commit/rollback). This ensures atomicity when inserting/updating members alongside sub-entities (addresses, phones, emails) — a failure at any step now rolls back the entire operation instead of leaving orphaned records.

(Closes #203)

Add IDBConnection dependency to MemberService and wrap create(), update(), and softDelete() in transactions (beginTransaction/commit/rollback). This ensures atomicity when inserting/updating members alongside sub-entities (addresses, phones, emails) — a failure at any step now rolls back the entire operation instead of leaving orphaned records. (Closes #203)
shahondin1624 added the backendbugpriority:high labels 2026-04-29 22:10:24 +02:00
shahondin1624 added 2 commits 2026-04-29 22:10:24 +02:00
Add IDBConnection dependency to MemberService and wrap create(),
update(), and softDelete() in transactions (beginTransaction/commit/
rollback). This ensures atomicity when inserting/updating members
alongside sub-entities (addresses, phones, emails) — a failure at
any step now rolls back the entire operation instead of leaving
orphaned records.

(Closes #203)
chore: move issue-203 plan to done
Database Portability Tests / Unit Tests (PlatformHelper) (pull_request) Failing after 37s
Database Portability Tests / Integration (mysql) (pull_request) Has been skipped
Database Portability Tests / Integration (postgres) (pull_request) Has been skipped
Database Portability Tests / Integration (sqlite) (pull_request) Has been skipped
Database Portability Tests / Verify no MySQL-specific SQL (pull_request) Successful in 5s
0ffc993d3f
shahondin1624 merged commit c4f5f8e7fb into main 2026-04-29 22:11:03 +02:00
Sign in to join this conversation.