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:
parent
06b76ab275
commit
8f7486cd9c
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue