* minor performance tweaks

* added related builds tab which show related builds (builds that are in same evaluations), shows max 50
This commit is contained in:
Rob Vermaas
2012-02-16 16:56:01 +01:00
parent 355135b6e8
commit 924d94cafd
4 changed files with 47 additions and 29 deletions

View File

@ -81,6 +81,13 @@ sub view_build : Chained('build') PathPart('') Args(0) {
];
}
my $r = joinWithResultInfo( $c, $c->model('DB::Builds'))->search(
{ eval => { -in => $build->jobsetevalmembers->get_column('eval')->as_query } }
, { join => 'jobsetevalmembers', order_by => [ 'project', 'jobset', 'job'] }
);
if ($r->count <= 50) {
$c->stash->{relatedbuilds} = [$r->all];
}
}