Allow showing all evaluations that contain a given build

[?]
Feb 21, 2013, 5:49 PM
ND75XNSQ6MWGOAOZGEBMED6QQKLZAU47TEQK3OKRSYOSAUVL6WNAC

Dependencies

  • [2] VH5ZABDR Add a page to show the latest evaluations for the entire server
  • [3] MMJYE535 Also show number of evaluations of which a build is a part
  • [4] 2VBQRQ2Q Fix some XML well-formedness problems
  • [5] PZL3SZM3 Give every page a consistent title
  • [6] 2GUAKGTB Fix indentation of build.tt
  • [7] HSVVEKTY * Start of a JSON API to get information about a specific build.
  • [8] A52HEFHQ * Allow builds to be restarted (if they failed with a transient error,
  • [9] 4WZQW2N6 Fix indentation and get rid of some unnecessary whitespace in the output
  • [10] WRIU3S5E * UI for cloning builds (not functional yet).
  • [11] XHVZXX6N
  • [12] L7NUCXKS Show new and removed jobs
  • [13] PMNWRTGJ Add multiple output support
  • [14] 3WUMSTU5 Use getMainOutput
  • [15] LBNVQXUB * Build the /build stuff in a separate controller.
  • [16] 5NO7NCKT * Refactoring.
  • [17] RWFCW6ZN In the jobset evals lists, show what inputs changed between consecutive evals
  • [18] U4TD3AIQ Add support for viewing jobset evaluations
  • [19] 6KIJX24R Get rid of unnecessary [%- and -%] tags
  • [20] FPK5LF53 * Put the project-related actions in a separate controller. Put the
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] IK53RV4V

Change contents

  • replacement in src/lib/Hydra/Controller/Build.pm at line 562
    [4.3297][4.81:149]()
    sub get_info : Chained('build') PathPart('api/get-info') Args(0) {
    [4.3297]
    [4.149]
    sub get_info : Chained('build') PathPart('api/get-info') Args(0) {
  • edit in src/lib/Hydra/Controller/Build.pm at line 571
    [4.412]
    [4.412]
    }
    sub get_info : Chained('build') PathPart('evals') Args(0) {
    my ($self, $c) = @_;
    $c->stash->{template} = 'evals.tt';
    my $page = int($c->req->param('page') || "1") || 1;
    my $resultsPerPage = 20;
    my $evals = $c->stash->{build}->jobsetevals;
    $c->stash->{page} = $page;
    $c->stash->{resultsPerPage} = $resultsPerPage;
    $c->stash->{total} = $evals->search({hasnewbuilds => 1})->count;
    $c->stash->{evals} = getEvals($self, $c, $evals, ($page - 1) * $resultsPerPage, $resultsPerPage)
  • replacement in src/root/build.tt at line 115
    [3.332][3.332:412]()
    [% IF nrEvals > 1 +%] (and [% nrEvals - 1 %] others)[% END %]
    [3.332]
    [3.412]
    [% IF nrEvals > 1 +%] (and <a href="[% c.uri_for('/build' build.id 'evals') %]">[% nrEvals - 1 %] others</a>)[% END %]
  • replacement in src/root/common.tt at line 387
    [4.9786][2.3005:3030]()
    [% IF !jobset %]
    [4.9786]
    [2.3030]
    [% IF !jobset && !build %]
  • replacement in src/root/common.tt at line 401
    [4.10056][2.3176:3203]()
    [% IF !jobset %]
    [4.10056]
    [2.3203]
    [% IF !jobset && !build %]
  • replacement in src/root/evals.tt at line 1
    [4.6334][2.3473:3588]()
    [% WRAPPER layout.tt title=(jobset ? "Evaluations of jobset $project.name:$jobset.name" : "Latest evaluations") %]
    [4.6334]
    [4.6419]
    [% WRAPPER layout.tt title=
    (build ? "Evaluations containing build $build.id" :
    jobset ? "Evaluations of jobset $project.name:$jobset.name" :
    "Latest evaluations") %]