From cc9c91fe1218460338c52366e0e8b503f327444d Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Thu, 25 Mar 2021 18:16:17 -0400 Subject: [PATCH] jobsets: put hidden and enabled jobsets at the end Allows for generally correct zebra striping --- src/lib/Hydra/Helper/Nix.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index c1f395c9..3a7b532e 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -113,7 +113,7 @@ sub registerRoot { sub jobsetOverview_ { my ($c, $jobsets) = @_; return $jobsets->search({}, - { order_by => "name" + { order_by => ["hidden ASC", "enabled DESC", "name"] , "+select" => [ "(select count(*) from Builds as a where a.finished = 0 and me.project = a.project and me.name = a.jobset and a.isCurrent = 1)" , "(select count(*) from Builds as a where a.finished = 1 and me.project = a.project and me.name = a.jobset and buildstatus <> 0 and a.isCurrent = 1)"