Add eager fetching of relations and enable that for jobset->jobsetinputs
[?]
Oct 24, 2013, 5:18 PM
4VYSDP4IAWIIVLXCKXJEYWIHZV3PUD3VACX3K4EIQKPFGWLZK6HQCDependencies
- [2]
K3HODXGHCheck all inputs for blame but only email selected inputs - [3]
YI3BZG5NCleanup Jobset serialization - [4]
KYSBJAYNAllow dashes in jobset input names - [5]
SYLVCTT6Start api cleanup with the User model - [6]
KSBB33REAdd a dashboard - [7]
LZVO64YGMerge in the first bits of the API work - [8]
7ECJWNVXCleanup Project model - [*]
X27GNHDV* Basic job info in the database. - [*]
SB2V735VKeep track of the database schema version
Change contents
- edit in src/lib/Hydra/Component/ToJSON.pm at line 26
foreach my $relname (keys %{$hint->{eager_relations}}) {my $key = $hint->{eager_relations}->{$relname};$json{$relname} = { map { $_->$key => $_ } $self->$relname };} - edit in src/lib/Hydra/Schema/JobsetInputs.pm at line 155[2.1148][11.20420]
my %hint = (relations => {"jobsetinputalts" => "value"}); - edit in src/lib/Hydra/Schema/JobsetInputs.pm at line 162[11.20421][10.1915]
sub json_hint {return \%hint;} - replacement in src/lib/Hydra/Schema/Jobsets.pm at line 312
relations => {eager_relations => { - replacement in tests/api-test.pl at line 3
use Test::Simple tests => 9;use Test::Simple tests => 10; - replacement in tests/api-test.pl at line 46
ok($jobset->{jobsetinputs}->[0] eq "my-src", "The new jobset has a 'my-src' input");ok(exists $jobset->{jobsetinputs}->{"my-src"}, "The new jobset has a 'my-src' input"); - replacement in tests/api-test.pl at line 48
=begin commentok($jobset->{jobsetinputs}->{"my-src"}->{jobsetinputalts}->[0] eq "/run/jobset", "The 'my-src' input is in /run/jobset"); - replacement in tests/api-test.pl at line 50
ok($jobset->{jobsetinputs}->[0]->{jobsetinputalts}->[0]->{value} eq "/run/jobset", "The 'my-src' input is in /run/jobset");=begin comment