* The "latest" channel shouldn't contain inactive jobs.

[?]
Apr 25, 2009, 11:41 AM
TCHEWSZLG3PX7JFBLYO5ASBYAGZU4TWUYZQGNXPHQ3J7DILQPYGAC

Dependencies

  • [2] ZD5AEKWM * Job status / error pages: show only active jobs.
  • [3] RI4S7SYT * Job status: show the active jobs.
  • [4] AKAZKCR6 * At top-level and for each project, provide two channels: "latest"
  • [5] FPK5LF53 * Put the project-related actions in a separate controller. Put the
  • [6] SJN2QPWH * Big speed-up of the job status page and the channel generation (such

Change contents

  • edit in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 8
    [3.165][2.0:1]()
  • edit in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 9
    [2.2][2.2:112]()
    sub getJobStatus {
    my ($self, $c) = @_;
    my $latest = joinWithResultInfo($c, $c->stash->{jobStatus});
  • replacement in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 10
    [2.113][2.113:144]()
    $latest = $latest->search(
    [2.113]
    [2.144]
    sub filterInactiveJobs {
    my ($build) = @_;
    return $build->search(
  • edit in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 18
    [2.272]
    [2.272]
    }
    sub getJobStatus {
    my ($self, $c) = @_;
    my $latest = joinWithResultInfo($c, $c->stash->{jobStatus});
    $latest = filterInactiveJobs($latest)
  • replacement in src/lib/Hydra/Base/Controller/ListBuilds.pm at line 86
    [3.289][3.188:258]()
    getChannelData($c, scalar($c->stash->{latestSucceeded}));
    [3.289]
    [3.386]
    getChannelData($c, scalar(filterInactiveJobs($c->stash->{latestSucceeded})));