3504: Fix collection chooser. Fix generic link render to use uuid if nothing
[arvados.git] / apps / workbench / app / views / projects / _show_sharing.html.erb
index bb652d43204cf3f1d3b411db88a0838704970c1c..ff0062c24bb15b44c72e13628d44f659f2e3dff2 100644 (file)
@@ -2,7 +2,9 @@
    uuid_map = {}
    if @share_links
      [User, Group].each do |type|
-       type.filter([['uuid','in',@share_links.collect(&:tail_uuid)]]).each do |o|
+       type.limit(10000)
+         .filter([['uuid','in',@share_links.collect(&:tail_uuid)]])
+         .each do |o|
          uuid_map[o.uuid] = o
        end
      end