Cleanup build serialization

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy
2013-10-24 15:47:36 -04:00
parent e04477003e
commit 5d3df69a0b
3 changed files with 14 additions and 26 deletions

View File

@ -98,23 +98,7 @@ sub build_GET {
{ rows => 1, order_by => ["id"] })->single;
$self->status_ok(
$c,
entity => $c->model('DB::Builds')->find($build->id,{
columns => [
'id',
'finished',
'timestamp',
'buildstatus',
'job',
'project',
'jobset',
'starttime',
'stoptime',
'nixname',
'description',
'drvpath',
'system',
]
})
entity => $build
);
# If this is an aggregate build, get its constituents.

View File

@ -601,4 +601,15 @@ makeQueries('ForJobset', "and project = ? and jobset = ?");
makeQueries('ForJob', "and project = ? and jobset = ? and job = ?");
my %hint = (
columns => [
"job",
"finished"
]
);
sub json_hint {
return \%hint;
}
1;