From c945529f052bab9f6eea5089581e3979faab8c51 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sun, 9 Jan 2022 11:40:17 -0500 Subject: [PATCH] queue summary: fix refs --- src/lib/Hydra/Controller/Root.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index 2745d0c2..587f4495 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -136,8 +136,9 @@ sub queue_summary :Local :Path('queue-summary') :Args(0) { $c->stash->{template} = 'queue-summary.tt'; $c->stash->{queued} = dbh($c)->selectall_arrayref( - "select project, jobset, count(*) as queued, min(timestamp) as oldest, max(timestamp) as newest from Builds " . - "where finished = 0 group by project, jobset order by queued desc", + "select jobsets.project as project, jobsets.name as jobset, count(*) as queued, min(timestamp) as oldest, max(timestamp) as newest from Builds " . + "join Jobsets jobsets on jobsets.id = builds.jobset_id " . + "where finished = 0 group by jobsets.project, jobsets.name order by queued desc", { Slice => {} }); $c->stash->{systems} = dbh($c)->selectall_arrayref(