* In the last succeeded / job status queries, use the Builds.isCurrent
column instead of Jobs.active.
This commit is contained in:
@ -15,7 +15,6 @@ sub job : Chained('/') PathPart('job') CaptureArgs(3) {
|
||||
or notFound($c, "Job $projectName:$jobsetName:$jobName doesn't exist.");
|
||||
$c->stash->{project} = $c->stash->{job}->project;
|
||||
$c->stash->{jobset} = $c->stash->{job}->jobset;
|
||||
$c->stash->{showInactiveJobs} = 1;
|
||||
}
|
||||
|
||||
|
||||
|
@ -28,7 +28,7 @@ sub index : Chained('jobset') PathPart('') Args(0) {
|
||||
|
||||
getBuildStats($c, scalar $c->stash->{jobset}->builds);
|
||||
|
||||
$c->stash->{activeJobs} = [$c->stash->{jobset}->jobs->search({active => 1})];
|
||||
$c->stash->{activeJobs} = [$c->stash->{jobset}->builds->search({isCurrent => 1}, {select => ["job"], distinct => 1})];
|
||||
$c->stash->{inactiveJobs} = [$c->stash->{jobset}->jobs->search({active => 0})];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user