From 1b1b971378a34982492aa061d061e8641c96d0c2 Mon Sep 17 00:00:00 2001 From: Efremenko Arhip Date: Sun, 26 Jul 2026 16:24:34 +0300 Subject: [PATCH] fix(coordinator): scan owner_id in UIReadRepo.ListJobs jobColumns gained owner_id but ListJobs' Scan still read 12 targets, so the query returned 13 columns and pgx failed at runtime. Only the integration tests (real DB) caught it; memstore-backed unit tests did not. --- coordinator/internal/storage/postgres/ui_read_repo.go | 1 + 1 file changed, 1 insertion(+) diff --git a/coordinator/internal/storage/postgres/ui_read_repo.go b/coordinator/internal/storage/postgres/ui_read_repo.go index c759b2a..90b3536 100644 --- a/coordinator/internal/storage/postgres/ui_read_repo.go +++ b/coordinator/internal/storage/postgres/ui_read_repo.go @@ -44,6 +44,7 @@ func (r *UIReadRepo) ListJobs(ctx context.Context, limit int) ([]domain.Job, err if err := rows.Scan( &j.ID, &j.Workload, &j.InputURI, &j.Parameters, &status, &j.CreatedAt, &j.CompletedAt, &j.InputArtifactID, &j.ResultArtifactID, &j.ErrorCode, &j.ErrorMessage, &j.ReducerStartedAt, + &j.OwnerID, ); err != nil { return nil, err }