* Job status / error pages: show only active jobs.

[?]
Apr 15, 2009, 2:50 PM
ZD5AEKWMW6IFFW46BJEFRPXRWMXTKCM4CSES6YTUOY7DEUX3E7JQC

Dependencies

  • [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
    [3.165]
    [3.165]
    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
    [3.166]
    [3.166]
    return $latest;
    }
  • edit in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 26
    [3.167]
    [3.167]
  • replacement in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 30
    [3.37][3.37:69](),[3.69][3.0:63]()
    $c->stash->{latestBuilds} =
    [joinWithResultInfo($c, $c->stash->{jobStatus})->all];
    [3.44]
    [2.0]
    $c->stash->{latestBuilds} = [getJobStatus($self, $c)->all];
  • replacement in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 46
    [2.534][2.534:630]()
    [joinWithResultInfo($c, $c->stash->{jobStatus})->search({buildstatus => {'!=' => 0}})];
    [2.534]
    [3.330]
    [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;