Move geo cache commit handling into repository layer
This commit is contained in:
@@ -115,6 +115,8 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
|
||||
|
||||
**Docs changes needed:** None required, but a comment in the architecture doc section 2.2 (Repositories) noting that geo cache bulk operations are an intentional exception to the "repositories own transactions" rule would help.
|
||||
|
||||
**Status:** Completed.
|
||||
|
||||
**Why this is needed:** Every other service delegates full DB lifecycle to the repository. `geo_service` is the only one calling `db.commit()` directly. This inconsistency makes it harder to reason about transaction boundaries and could confuse developers who expect the repository to handle commits.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user