20690: Remove workbench1 and testing/packaging references.
[arvados.git] / 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
deleted file mode 100644 (file)
index 0376590..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-class WorkUnitTemplatesController < ApplicationController
-  def find_objects_for_index
-    return if !params[:partial]
-
-    @limit = 40
-    @filters = @filters || []
-
-    # get next page of pipeline_templates
-    if PipelineTemplate.api_exists?(:index)
-      filters = @filters + [["uuid", "is_a", ["arvados#pipelineTemplate"]]]
-      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"]).with_count("none").filter(filters)
-
-    @objects = (pipelines.to_a + workflows.to_a).sort_by(&:created_at).reverse.first(@limit)
-
-    if @objects.any?
-      @next_page_filters = next_page_filters('<=')
-      @next_page_href = url_for(partial: :choose_rows,
-                                filters: @next_page_filters.to_json)
-    else
-      @next_page_href = nil
-    end
-  end
-
-  def next_page_href with_params={}
-    @next_page_href
-  end
-end