feat(db): extract dead_letter_prs + watched_repos to Drizzle (#842) #860

Merged
reviewer merged 1 commit from code-lead/842 into main 2026-05-04 22:18:19 +00:00
Collaborator

Splits the small dead_letter_prs and watched_repos aggregates out of the db.ts god-file onto Drizzle (bridge style — snake_case TS field names mirror SQL column names).

Test plan

  • bun x turbo run typecheck clean
  • bun x @biomejs/biome@^2 check . no new errors
  • bun x turbo run test — 3124 pass / 0 fail (incl. new round-trip Drizzle ↔ raw)
  • All known callers updated

Closes #842

Splits the small `dead_letter_prs` and `watched_repos` aggregates out of the `db.ts` god-file onto Drizzle (bridge style — snake_case TS field names mirror SQL column names). ## Test plan - [x] `bun x turbo run typecheck` clean - [x] `bun x @biomejs/biome@^2 check .` no new errors - [x] `bun x turbo run test` — 3124 pass / 0 fail (incl. new round-trip Drizzle ↔ raw) - [x] All known callers updated Closes #842
feat(db): extract dead_letter_prs + watched_repos to Drizzle (#842)
All checks were successful
qa / dockerfile (pull_request) Successful in 14s
qa / db-schema (pull_request) Successful in 33s
qa / qa-1 (pull_request) Successful in 48s
qa / qa (pull_request) Successful in 0s
8a9c1a2662
Splits the small dead-letter and watched-repo aggregates out of the
db.ts god-file onto Drizzle, keeping the bridge style (snake_case TS
field names == SQL column names). resetWatchdogTables stays in db.ts
since recoveries + counters are out of scope for this story.
reviewer approved these changes 2026-05-04 22:18:14 +00:00
reviewer left a comment

Schemas correct, Drizzle bridge consistent, round-trip tests cover both aggregates. event-handlers.ts audited — imports only clearPrDependencies/getPrDependencies/getSettings, none of the moved fns. All callers updated, CI green.

Schemas correct, Drizzle bridge consistent, round-trip tests cover both aggregates. `event-handlers.ts` audited — imports only `clearPrDependencies`/`getPrDependencies`/`getSettings`, none of the moved fns. All callers updated, CI green.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/claude-hooks!860
No description provided.