Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / controllers / search_controller.rb
index 447f416aa25e438ab8fd5cdba3cf0d7d9827ebb7..40e484ea062b449068923fdc8d9951f1f7adddbe 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class SearchController < ApplicationController
   def find_objects_for_index
     search_what = Group
@@ -15,6 +19,9 @@ class SearchController < ApplicationController
     end
     @objects = search_what.contents(limit: @limit,
                                     offset: @offset,
+                                    recursive: true,
+                                    count: 'none',
+                                    last_object_class: params["last_object_class"],
                                     filters: @filters)
     super
   end
@@ -22,6 +29,8 @@ class SearchController < ApplicationController
   def next_page_href with_params={}
     super with_params.merge(last_object_class: @objects.last.class.to_s,
                             project_uuid: params[:project_uuid],
+                            recursive: true,
+                            count: 'none',
                             filters: @filters.to_json)
   end
 end