countRecentDeadLetters (src/db/repositories.ts:2133) returns a single total from the github_app.dlq_dead_lettered audit events, but the planned DLQ management UI (#1208) needs the breakdown BY jobType to know what's failing. Add a repository helper countRecentDeadLettersByType(env, sinceIso): Record<string,number> that GROUP BYs the jobType stored in the audit metadata. Pure read-only aggregation; does not touch the merge/close decision path.
Deliverables
References
src/db/repositories.ts:2131
src/db/repositories.ts:2133
src/queue/dlq.ts:39
Part of #1208.
size: S · gittensor:feature
countRecentDeadLetters (src/db/repositories.ts:2133) returns a single total from the github_app.dlq_dead_lettered audit events, but the planned DLQ management UI (#1208) needs the breakdown BY jobType to know what's failing. Add a repository helper countRecentDeadLettersByType(env, sinceIso): Record<string,number> that GROUP BYs the jobType stored in the audit metadata. Pure read-only aggregation; does not touch the merge/close decision path.
Deliverables
References
src/db/repositories.ts:2131src/db/repositories.ts:2133src/queue/dlq.ts:39Part of #1208.
size: S · gittensor:feature