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:
aszlig
2015-04-21 07:57:36 +02:00
parent 06b76ab275
commit 8f7486cd9c

View File

@ -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');