Show buildinput and buildproduct information in the Builds API

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-11-05 09:42:05 -05:00
parent 1f711403be
commit 385ceaff4d
3 changed files with 34 additions and 5 deletions

View file

@ -179,4 +179,17 @@ __PACKAGE__->belongs_to(
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-10-08 13:08:15 # Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-10-08 13:08:15
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OaJPzRM+8XGsu3eIkqeYEw # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OaJPzRM+8XGsu3eIkqeYEw
my %hint = (
columns => [
'type',
'uri',
'value',
'revision',
],
);
sub json_hint {
return \%hint;
}
1; 1;

View file

@ -153,5 +153,22 @@ __PACKAGE__->belongs_to(
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-06-13 01:54:50 # Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-06-13 01:54:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+0LkZiaRL5tGJvbLxnwD/g # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+0LkZiaRL5tGJvbLxnwD/g
# You can replace this text with custom content, and it will be preserved on regeneration my %hint = (
columns => [
'type',
'subtype',
'name',
'fileSize',
'sha1hash',
'sha256hash',
'description',
'path',
'defaultPath'
],
);
sub json_hint {
return \%hint;
}
1; 1;

View file

@ -603,9 +603,6 @@ makeQueries('ForJob', "and project = ? and jobset = ? and job = ?");
my %hint = ( my %hint = (
columns => [ columns => [
'id',
'finished',
'timestamp',
'starttime', 'starttime',
'stoptime', 'stoptime',
'project', 'project',
@ -619,7 +616,9 @@ my %hint = (
'releasename' 'releasename'
], ],
eager_relations => { eager_relations => {
buildoutputs => 'name' buildoutputs => 'name',
buildinputs => 'name'
buildproducts => 'productnr',
} }
); );