From 4f018b06124f1a30b187f38d88e54e00b7f069bc Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Sep 2015 12:57:58 +0200 Subject: [PATCH] Include the eval IDs in the JSON /build result --- src/lib/Hydra/Schema/Builds.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/Hydra/Schema/Builds.pm b/src/lib/Hydra/Schema/Builds.pm index b87b7958..b9dc0437 100644 --- a/src/lib/Hydra/Schema/Builds.pm +++ b/src/lib/Hydra/Schema/Builds.pm @@ -575,12 +575,6 @@ __PACKAGE__->has_many( { "foreign.build" => "self.id" }, ); -__PACKAGE__->has_many( - "evals", - "Hydra::Schema::BuildInputs", - { "foreign.build" => "self.id" }, -); - __PACKAGE__->has_one( "actualBuildStep", "Hydra::Schema::BuildSteps", @@ -649,9 +643,11 @@ my %hint = ( 'buildstatus', 'releasename' ], + relations => { + jobsetevals => 'id' + }, eager_relations => { buildoutputs => 'name', - buildinputs_builds => 'name', buildproducts => 'productnr', buildmetrics => 'name', }