[Arch] Route handler bypasses db.py with raw SQL #56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium | Category: Architecture
main.py:935-952(api_bulk_archive_delivered) executes raw SQL directly instead of calling adb.pyfunction, violating docs/architecture.md golden principle #1 ("All DB access through db.py functions").Recommendation: Move the bulk-archive query into
db.pyasdb.bulk_archive_delivered(shipment_ids).Full detail:
docs/architecture-review.md§ C, Finding "Route handler bypasses db.py with raw SQL"Fixed on branch
architecture-rework, commitebcc1f8: addeddb.bulk_archive_delivered(user_id), moved the raw SQL fromapi_bulk_archive_deliveredinto it. Full suite: 257 passed.