3.5 KiB
3.5 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 04e57a23-0a20-49d6-8c5a-2fa5fc4e55b5 | workflow | PR review: paper-dynasty-database#33 (APPROVED) |
|
0.5 | 0.8 | 2026-03-03T18:08:58.224854+00:00 | 2026-03-04T03:50:21.014819+00:00 |
|
Reviewed paper-dynasty-database PR #33 — fix: replace 467 manual db.close() calls with middleware (#30). Verdict: APPROVED.
Summary: Correct implementation of the standard Peewee + FastAPI middleware pattern. Eliminates connection-leak bug across 467 call sites. Safe for both SQLite (dev) and PooledPostgresqlDatabase (prod).
Key findings:
- Middleware uses
reuse_if_open=Trueandis_closed()guard — correct - Diff: exactly 467 db.close() removals, 0 other router logic changes
- 15 router files will have unused
dbimports post-merge (flagged for follow-up) - Middleware placement after include_router() is valid in Starlette
- Gitea blocks self-approval; posted as COMMENT with APPROVED recommendation
Files changed: app/main.py + 30 routers_v2 files