hydra: in case of cached build, add link to build that built the storepath

[?]
Jan 15, 2010, 2:18 PM
HB3OHPJLK47NODSPGPMHZOT2E6FNQMGJNVV7MKBCWF6P65TCAKKQC

Dependencies

  • [2] ZILILXXK * Allow scheduled builds to be cancelled. They're not removed from
  • [3] MRVTLC76
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 40
    [3.62]
    [5.1105]
    }
    if (defined $build->resultInfo && $build->resultInfo->iscachedbuild) {
    (my $cachedBuildStep) = $c->model('DB::BuildSteps')->search({ outpath => $build->outpath }, {}) ;
    $c->stash->{cachedBuild} = $cachedBuildStep->build;
  • edit in src/lib/Hydra/Controller/Build.pm at line 46
    [5.1111]
    [5.1111]
  • edit in src/root/build.tt at line 153
    [2.1964]
    [2.1964]
    [% IF build.resultInfo.iscachedbuild %]
    <tr>
    <th>Cached build:</th>
    <td><a href="[% c.uri_for('/build' cachedBuild.id ) %]">[% cachedBuild.id %]</a></td>
    </tr>
    [% END %]