* Job status / error pages: show only active jobs.
[?]
Apr 15, 2009, 2:50 PM
ZD5AEKWMW6IFFW46BJEFRPXRWMXTKCM4CSES6YTUOY7DEUX3E7JQCDependencies
- [2]
75XUS62Y* Added a page to quickly see all failed builds and failed evaluations - [3]
DEMSSSB2* Controller for jobs which inherits all actions in ListBuilds. So - [4]
FPK5LF53* Put the project-related actions in a separate controller. Put the - [5]
SJN2QPWH* Big speed-up of the job status page and the channel generation (such - [6]
RI4S7SYT* Job status: show the active jobs. - [*]
UWVMQIAC* Refactoring.
Change contents
- edit in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 8
sub getJobStatus {my ($self, $c) = @_;my $latest = joinWithResultInfo($c, $c->stash->{jobStatus});$latest = $latest->search({ active => 1 },{ join => 'job', '+select' => ["job.active"], '+as' => ["active"]})unless defined $c->stash->{showInactiveJobs}; - edit in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 23
return $latest;} - edit in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 26
- replacement in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 30
$c->stash->{latestBuilds} =[joinWithResultInfo($c, $c->stash->{jobStatus})->all];$c->stash->{latestBuilds} = [getJobStatus($self, $c)->all]; - replacement in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 46
[joinWithResultInfo($c, $c->stash->{jobStatus})->search({buildstatus => {'!=' => 0}})];[getJobStatus($self, $c)->search({buildstatus => {'!=' => 0}})]; - edit in src/lib/Hydra/Controller/Job.pm at line 18[8.363][3.427]
$c->stash->{showInactiveJobs} = 1;