fix(postgres): carry org, park class and park blocker on task list rows so a parked task's recovery link shows

This commit is contained in:
sam committed 2026-10-27 11:44:23 +11:00
1 parent e42e423999
commit c83b3b8c64
3 files changed
+9 -2

No files matched your search

@@ -609,7 +609,7 @@ const listTaskSummaries = `-- name: ListTaskSummaries :many
SELECT id, owner, repo, issue_number, title, status, workflow,
pr_number, tokens_used, iterations, attempt, park_reason, retry_count,
created_at, updated_at, plan, plan_document, source, identity, binding_id, binding_version,
outputs, review_gate, rereview_rounds
outputs, review_gate, rereview_rounds, org_id, park_class, park_blocker
FROM tasks
WHERE ($1::text IS NULL OR org_id = $1)
AND (cardinality($2::text[]) = 0 OR status = ANY($2::text[]))
@@ -654,6 +654,9 @@ type ListTaskSummariesRow struct {
Outputs string
ReviewGate string
RereviewRounds int64
OrgID string
ParkClass string
ParkBlocker string
}
// The dashboard's list. This projection is deliberately narrow: Plan gates
@@ -706,6 +709,9 @@ func (q *Queries) ListTaskSummaries(ctx context.Context, arg ListTaskSummariesPa
&i.Outputs,
&i.ReviewGate,
&i.RereviewRounds,
&i.OrgID,
&i.ParkClass,
&i.ParkBlocker,
); err != nil {
return nil, err
}