From 8f7486cd9c7528c2840585708cc7fa06a3ffd784 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 21 Apr 2015 07:57:36 +0200 Subject: [PATCH] Jobset.pm: Detect channels by isChannel attribute. We now no longer need that additional join of the build outputs and can solely use the isChannel column of the Builds table to determine whether it's a channel build. Signed-off-by: aszlig --- src/lib/Hydra/Controller/Jobset.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/Hydra/Controller/Jobset.pm b/src/lib/Hydra/Controller/Jobset.pm index 92bede32..558d5706 100644 --- a/src/lib/Hydra/Controller/Jobset.pm +++ b/src/lib/Hydra/Controller/Jobset.pm @@ -160,9 +160,8 @@ sub channels_tab : Chained('jobsetChain') PathPart('channels-tab') Args(0) { foreach my $eval (@evals) { my @builds = $eval->builds->search( - { 'buildproducts.type' => 'channel' }, - { join => ["buildproducts"] - , columns => ['id', 'job', 'finished', 'buildstatus'] } + { ischannel => 1 }, + { columns => ['id', 'job', 'finished', 'buildstatus'] } ); foreach my $b (@builds) { my $jobName = $b->get_column('job');