[ARVADOS] updated: c68407dea1a6474450bbeccdd52d8305a8bbc75a
git at public.curoverse.com
git at public.curoverse.com
Tue Dec 31 12:45:35 EST 2013
Summary of changes:
.../api/app/controllers/application_controller.rb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
via c68407dea1a6474450bbeccdd52d8305a8bbc75a (commit)
from fbb6c64bdfcf3716c6a9fbdf5d7614ac9a7a88bf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit c68407dea1a6474450bbeccdd52d8305a8bbc75a
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Dec 31 09:44:57 2013 -0800
Add "items_available" (integer) to generic list response.
diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb
index de0c50c..c6e7da0 100644
--- a/services/api/app/controllers/application_controller.rb
+++ b/services/api/app/controllers/application_controller.rb
@@ -335,6 +335,9 @@ class ApplicationController < ActionController::Base
:next_link => "",
:items => @objects.as_api_response(nil)
}
+ if @objects.respond_to? :except
+ @object_list[:items_available] = @objects.except(:limit).count
+ end
render json: @object_list
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list