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 <aszlig@redmoonstudios.org>
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user