X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/16f704326f44fd1e5e5e60b936c9b5895d6a6ff8..28b6afc1e8ccf652c7a8fd43e22a8ac788febd85:/apps/workbench/app/controllers/work_unit_templates_controller.rb diff --git a/apps/workbench/app/controllers/work_unit_templates_controller.rb b/apps/workbench/app/controllers/work_unit_templates_controller.rb index 1dba520a7a..0376590a55 100644 --- a/apps/workbench/app/controllers/work_unit_templates_controller.rb +++ b/apps/workbench/app/controllers/work_unit_templates_controller.rb @@ -12,12 +12,12 @@ class WorkUnitTemplatesController < ApplicationController # get next page of pipeline_templates if PipelineTemplate.api_exists?(:index) filters = @filters + [["uuid", "is_a", ["arvados#pipelineTemplate"]]] - pipelines = PipelineTemplate.limit(@limit).order(["created_at desc"]).filter(filters) + pipelines = PipelineTemplate.limit(@limit).with_count("none").order(["created_at desc"]).filter(filters) end # get next page of workflows filters = @filters + [["uuid", "is_a", ["arvados#workflow"]]] - workflows = Workflow.limit(@limit).order(["created_at desc"]).filter(filters) + workflows = Workflow.limit(@limit).order(["created_at desc"]).with_count("none").filter(filters) @objects = (pipelines.to_a + workflows.to_a).sort_by(&:created_at).reverse.first(@limit)