projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into 10645-cr-mounts-display
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
arvados_resource_list.rb
diff --git
a/apps/workbench/app/models/arvados_resource_list.rb
b/apps/workbench/app/models/arvados_resource_list.rb
index 27069706fb36e1f5f56b2853ff0b93216e9637ae..35dcde38da24cabc5290e24e0a99131f467181b4 100644
(file)
--- a/
apps/workbench/app/models/arvados_resource_list.rb
+++ b/
apps/workbench/app/models/arvados_resource_list.rb
@@
-84,6
+84,13
@@
class ArvadosResourceList
self
end
self
end
+ # with_count sets the 'count' parameter to 'exact' or 'none' -- see
+ # https://doc.arvados.org/api/methods.html#index
+ def with_count(count_param='exact')
+ @count = count_param
+ self
+ end
+
def fetch_multiple_pages(f)
@fetch_multiple_pages = f
self
def fetch_multiple_pages(f)
@fetch_multiple_pages = f
self
@@
-178,6
+185,7
@@
class ArvadosResourceList
api_params = {
_method: 'GET'
}
api_params = {
_method: 'GET'
}
+ api_params[:count] = @count if @count
api_params[:where] = @cond if @cond
api_params[:eager] = '1' if @eager
api_params[:select] = @select if @select
api_params[:where] = @cond if @cond
api_params[:eager] = '1' if @eager
api_params[:select] = @select if @select