Allow filtering jobs in eval pages

[?]
Aug 28, 2013, 2:07 PM
2S7UHICMX4WPA4VYTPUYU6SXTDQ6ZORXJ4AZ7F4YXLGQPYCAVYBQC

Dependencies

  • [2] W74RIXTJ Show inputs and input changes on the jobset eval page
  • [3] X46KWQFN Fix incorrect removed jobs in eval pages
  • [4] U4TD3AIQ Add support for viewing jobset evaluations
  • [5] DE2DNCOI Allow comparing an evaluation with an arbitrary other evaluation
  • [6] KQZQI2WN Allow creating a release from an evaluation
  • [7] 3PNG7NIB Remove trailing whitespace
  • [8] L7NUCXKS Show new and removed jobs

Change contents

  • edit in src/lib/Hydra/Controller/JobsetEval.pm at line 28
    [4.1950]
    [4.1950]
    $c->stash->{filter} = $c->request->params->{filter} // "";
    my $filter = $c->stash->{filter} eq "" ? {} : { job => { ilike => "%" . $c->stash->{filter} . "%" } };
  • replacement in src/lib/Hydra/Controller/JobsetEval.pm at line 68
    [4.2347][3.185:369]()
    my @builds = $eval->builds->search({}, { columns => [@buildListColumns] });
    my @builds2 = defined $eval2 ? $eval2->builds->search({}, { columns => [@buildListColumns] }) : ();
    [4.2347]
    [3.369]
    my @builds = $eval->builds->search($filter, { columns => [@buildListColumns] });
    my @builds2 = defined $eval2 ? $eval2->builds->search($filter, { columns => [@buildListColumns] }) : ();
  • edit in src/root/jobset-eval.tt at line 38
    [2.1764]
    [4.518]
    <form class="form-search">
    <input name="filter" type="text" class="input-large search-query" placeholder="Search jobs by name..." [% HTML.attributes(value => filter) %]/>
    <input name="compare" type="hidden" [% HTML.attributes(value => otherEval.id) %]/>
    <input name="full" type="hidden" [% HTML.attributes(value => full) %]/>
    </form>
  • replacement in src/root/jobset-eval.tt at line 105
    [2.4283][2.4283:4398]()
    <a class="btn" href="[% c.uri_for(c.controller('JobsetEval').action_for('release'), [eval.id]) %]">Release</a>
    [2.4283]
    [2.4398]
    <a class="btn" href="[% c.uri_for(c.controller('JobsetEval').action_for('release'), [eval.id]) %]">Release</a>