On build pages, provide a link to the build's first eval

[?]
Feb 21, 2013, 5:34 PM
FU4GO5VN3PKQ3DKOHVHJTMHUKOKMKWS27TIULQ3FMEFXRED5Q44AC

Dependencies

  • [2] 7ZVZJK54 Re-enable the "Related Builds" tab
  • [3] 2GUAKGTB Fix indentation of build.tt
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] HB3OHPJL hydra: in case of cached build, add link to build that built the storepath
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] AHTEIK7G * Added a maintainers field to the Builds table.
  • [*] PMNWRTGJ Add multiple output support
  • [*] 2QA4Y4G3 * hydra: added index, actual build time (buildstep with same outpath, so without deps) of the build

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 94
    [6.250]
    [2.0]
    # Get the first eval of which this build was a part.
    ($c->stash->{eval}) = $c->stash->{build}->jobsetevals->search(
    { hasnewbuilds => 1},
    { limit => 1, order_by => ["id"] });
  • edit in src/lib/Hydra/Schema/Builds.pm at line 481
    [8.9200]
    [8.9200]
    "Hydra::Schema::BuildInputs",
    { "foreign.build" => "self.id" },
    );
    __PACKAGE__->has_many(
    "evals",
  • edit in src/lib/Hydra/Schema/Builds.pm at line 498
    [9.10872]
    [10.296]
    __PACKAGE__->many_to_many("jobsetevals", "jobsetevalmembers", "eval");
  • edit in src/root/build.tt at line 100
    [3.2814]
    [3.2814]
    [% IF eval %]
    <tr>
    <th>Part of:</th>
    <td><a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %]">evaluation [% eval.id %]</a></td>
    </tr>
    [% END %]