From 8a663f2cf8a4460b9b47e88bdd0fe3c8d0e8a21c Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Sun, 9 Jan 2022 11:40:24 -0500 Subject: [PATCH] machines: fixup refs --- src/lib/Hydra/Controller/Root.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index 587f4495..c02602f3 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -200,8 +200,10 @@ sub machines :Local Args(0) { $c->stash->{machines} = $machines; $c->stash->{steps} = dbh($c)->selectall_arrayref( - "select build, stepnr, s.system as system, s.drvpath as drvpath, machine, s.starttime as starttime, project, jobset, job, s.busy as busy " . - "from BuildSteps s join Builds b on s.build = b.id " . + "select build, stepnr, s.system as system, s.drvpath as drvpath, machine, s.starttime as starttime, jobsets.project, jobsets.name, job, s.busy as busy " . + "from BuildSteps s " . + "join Builds b on s.build = b.id " . + "join Jobsets jobsets on jobsets.id = b.jobset_id " . "where busy != 0 order by machine, stepnr", { Slice => {} }); $c->stash->{template} = 'machine-status.tt';