Flesh out the API a bit

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy
2013-10-29 13:54:11 -04:00
parent b51b8cddf4
commit 4eef090a45
5 changed files with 14 additions and 5 deletions

View File

@ -274,7 +274,7 @@ sub evals_GET {
my $offset = ($page - 1) * $resultsPerPage;
$c->stash->{evals} = getEvals($self, $c, $evals, $offset, $resultsPerPage);
my %entity = (
evals => $c->stash->{evals},
evals => [ map { $_->{eval} } @{$c->stash->{evals}} ],
first => "?page=1",
last => "?page=" . POSIX::ceil($c->stash->{total}/$resultsPerPage)
);

View File

@ -606,6 +606,7 @@ my %hint = (
'id',
'finished',
'timestamp',
'starttime',
'stoptime',
'project',
'jobset',

View File

@ -171,7 +171,9 @@ __PACKAGE__->belongs_to(
my %hint = (
columns => [
"revision"
"revision",
"type",
"uri"
],
);

View File

@ -309,6 +309,12 @@ __PACKAGE__->has_many(
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DTAGxP5RFvcNxP/ciJGo4Q
my %hint = (
columns => [
"enabled",
"errormsg",
"fetcherrormsg",
"emailoverride"
],
eager_relations => {
jobsetinputs => "name"
}