* Big speed-up of the job status page and the channel generation (such
as the manifest). The builds are now determined in one SQL query rather than a zillion ones.
This commit is contained in:
@ -30,9 +30,10 @@ sub overview : Chained('job') PathPart('') Args(0) {
|
||||
sub get_builds : Chained('job') PathPart('') CaptureArgs(0) {
|
||||
my ($self, $c) = @_;
|
||||
$c->stash->{allBuilds} = $c->stash->{job}->builds;
|
||||
#$c->stash->{allJobs} = # !!! horribly hacky
|
||||
# $c->stash->{job}->jobset->jobs->search({name => $c->stash->{job}->name});
|
||||
$c->stash->{allJobs} = [$c->stash->{job}];
|
||||
$c->stash->{jobStatus} = $c->model('DB')->resultset('JobStatusForJob')
|
||||
->search({}, {bind => [$c->stash->{project}->name, $c->stash->{jobset}->name, $c->stash->{job}->name]});
|
||||
$c->stash->{latestSucceeded} = $c->model('DB')->resultset('LatestSucceededForJob')
|
||||
->search({}, {bind => [$c->stash->{project}->name, $c->stash->{jobset}->name, $c->stash->{job}->name]});
|
||||
$c->stash->{channelBaseName} =
|
||||
$c->stash->{project}->name . "-" . $c->stash->{jobset}->name . "-" . $c->stash->{job}->name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user