Cleanup eval serialization
[?]
Oct 24, 2013, 7:38 PM
MQYHIUEEIMJHLABLHRJTJSHITJMHRHMF7NACHRD7QRBJCA3GQPRQCDependencies
- [2]
4VYSDP4IAdd eager fetching of relations and enable that for jobset->jobsetinputs - [3]
SYLVCTT6Start api cleanup with the User model - [4]
G2T4WAHIStore the inputs of each evaluation in the database - [5]
VH5ZABDRAdd a page to show the latest evaluations for the entire server - [6]
7ECJWNVXCleanup Project model - [7]
U4TD3AIQAdd support for viewing jobset evaluations - [8]
LZVO64YGMerge in the first bits of the API work - [9]
Y6AHH4THRemove the logfile and logSize columns from the database - [10]
KYSBJAYNAllow dashes in jobset input names - [11]
YI3BZG5NCleanup Jobset serialization - [*]
3HZY24CX* Make jobsets viewable under - [*]
5SHCWE7X* Prevent repeated evaluation of a jobset with the same inputs. This - [*]
KPZNJ33U* In views, support selecting a job that doesn't depend on the
Change contents
- replacement in src/lib/Hydra/Controller/Jobset.pm at line 277
evals => [ $evals->search({ 'me.hasnewbuilds' => 1 }, {columns => ['me.hasnewbuilds','me.id','jobsetevalinputs.name','jobsetevalinputs.altnr','jobsetevalinputs.revision','jobsetevalinputs.type','jobsetevalinputs.uri','jobsetevalinputs.dependency','jobsetevalmembers.build',],join => [ 'jobsetevalinputs', 'jobsetevalmembers' ],collapse => 1,rows => $resultsPerPage,offset => $offset,order_by => "me.id DESC",}) ],evals => $c->stash->{evals}, - edit in src/lib/Hydra/Schema/JobsetEvalInputs.pm at line 171
my %hint = (columns => ["revision"],); - edit in src/lib/Hydra/Schema/JobsetEvalInputs.pm at line 178
sub json_hint {return \%hint;} - edit in src/lib/Hydra/Schema/JobsetEvalInputs.pm at line 182
# You can replace this text with custom code or comments, and it will be preserved on regeneration - edit in src/lib/Hydra/Schema/JobsetEvals.pm at line 201[15.1847][14.1277]
my %hint = (columns => ["hasnewbuilds","id"],relations => {"builds" => "id"},eager_relations => {# altnr? Does anyone care?jobsetevalinputs => "name"}); - edit in src/lib/Hydra/Schema/JobsetEvals.pm at line 216
sub json_hint {return \%hint;} - replacement in tests/api-test.pl at line 3
use Test::Simple tests => 10;use Test::Simple tests => 13; - edit in tests/api-test.pl at line 50[3.245]→[2.598:613](∅→∅),[2.613]→[3.38519:38520](∅→∅),[3.744]→[3.38519:38520](∅→∅),[3.38519]→[3.38519:38520](∅→∅)
=begin comment - replacement in tests/api-test.pl at line 55
ok($eval->{hasnewbuilds} == 1, "The first eval of a jobset has new builds");ok($eval->{eval}->{hasnewbuilds} == 1, "The first eval of a jobset has new builds"); - replacement in tests/api-test.pl at line 61
ok($evals->[0]->{jobsetevalinputs}->[0]->{revision} != $evals->[1]->{jobsetevalinputs}->[0]->{revision}, "Changing a jobset source changes its revision");ok($evals->[0]->{eval}->{jobsetevalinputs}->{"my-src"}->{revision} != $evals->[1]->{eval}->{jobsetevalinputs}->{"my-src"}->{revision}, "Changing a jobset source changes its revision");=begin comment