Flesh out the API a bit

[?]
Oct 29, 2013, 5:54 PM
NP7IOJ4QI25BLULQEYBACUR4KXWMYLNTM2K5VNPX2FAFGHZ37WYAC

Dependencies

  • [2] SHIENRAL Clean up root controller
  • [3] LZVO64YG Merge in the first bits of the API work
  • [4] YI3BZG5N Cleanup Jobset serialization
  • [5] MQYHIUEE Cleanup eval serialization
  • [6] VH5ZABDR Add a page to show the latest evaluations for the entire server
  • [7] 2DGIP6L4 Cleanup build serialization
  • [8] G2T4WAHI Store the inputs of each evaluation in the database
  • [*] 3HZY24CX * Make jobsets viewable under
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] X27GNHDV * Basic job info in the database.
  • [*] 4VYSDP4I Add eager fetching of relations and enable that for jobset->jobsetinputs

Change contents

  • replacement in src/lib/Hydra/Controller/Jobset.pm at line 277
    [3.14376][3.0:37]()
    evals => $c->stash->{evals},
    [3.14376]
    [3.15188]
    evals => [ map { $_->{eval} } @{$c->stash->{evals}} ],
  • edit in src/lib/Hydra/Schema/Builds.pm at line 609
    [2.477]
    [2.477]
    'starttime',
  • replacement in src/lib/Hydra/Schema/JobsetEvalInputs.pm at line 174
    [3.69][3.69:88]()
    "revision"
    [3.69]
    [3.88]
    "revision",
    "type",
    "uri"
  • edit in src/lib/Hydra/Schema/Jobsets.pm at line 312
    [3.14]
    [13.330]
    columns => [
    "enabled",
    "errormsg",
    "fetcherrormsg",
    "emailoverride"
    ],
  • replacement in tests/api-test.pl at line 54
    [3.38939][3.438:523]()
    ok($eval->{eval}->{hasnewbuilds} == 1, "The first eval of a jobset has new builds");
    [3.38939]
    [3.39016]
    ok($eval->{hasnewbuilds} == 1, "The first eval of a jobset has new builds");
  • replacement in tests/api-test.pl at line 60
    [3.39401][3.524:709]()
    ok($evals->[0]->{eval}->{jobsetevalinputs}->{"my-src"}->{revision} != $evals->[1]->{eval}->{jobsetevalinputs}->{"my-src"}->{revision}, "Changing a jobset source changes its revision");
    [3.39401]
    [3.709]
    ok($evals->[0]->{jobsetevalinputs}->{"my-src"}->{revision} != $evals->[1]->{jobsetevalinputs}->{"my-src"}->{revision}, "Changing a jobset source changes its revision");
  • replacement in tests/api-test.pl at line 62
    [3.710][3.170:279]()
    my $build = decode_json(request_json({ uri => "/build/" . $evals->[0]->{eval}->{builds}->[0] })->content());
    [3.710]
    [3.39678]
    my $build = decode_json(request_json({ uri => "/build/" . $evals->[0]->{builds}->[0] })->content());