Include the eval IDs in the JSON /build result
This commit is contained in:
parent
2b9bf7526d
commit
4f018b0612
|
@ -575,12 +575,6 @@ __PACKAGE__->has_many(
|
||||||
{ "foreign.build" => "self.id" },
|
{ "foreign.build" => "self.id" },
|
||||||
);
|
);
|
||||||
|
|
||||||
__PACKAGE__->has_many(
|
|
||||||
"evals",
|
|
||||||
"Hydra::Schema::BuildInputs",
|
|
||||||
{ "foreign.build" => "self.id" },
|
|
||||||
);
|
|
||||||
|
|
||||||
__PACKAGE__->has_one(
|
__PACKAGE__->has_one(
|
||||||
"actualBuildStep",
|
"actualBuildStep",
|
||||||
"Hydra::Schema::BuildSteps",
|
"Hydra::Schema::BuildSteps",
|
||||||
|
@ -649,9 +643,11 @@ my %hint = (
|
||||||
'buildstatus',
|
'buildstatus',
|
||||||
'releasename'
|
'releasename'
|
||||||
],
|
],
|
||||||
|
relations => {
|
||||||
|
jobsetevals => 'id'
|
||||||
|
},
|
||||||
eager_relations => {
|
eager_relations => {
|
||||||
buildoutputs => 'name',
|
buildoutputs => 'name',
|
||||||
buildinputs_builds => 'name',
|
|
||||||
buildproducts => 'productnr',
|
buildproducts => 'productnr',
|
||||||
buildmetrics => 'name',
|
buildmetrics => 'name',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue