X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/23c44c899b783a784bd9c60e3efda63cab2f6cc8..a0993e451f8a5e209df74dc9f8f0e55bdf1c73bd:/apps/workbench/app/controllers/application_controller.rb diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb index 69c273c65e..db00be390a 100644 --- a/apps/workbench/app/controllers/application_controller.rb +++ b/apps/workbench/app/controllers/application_controller.rb @@ -1094,7 +1094,7 @@ class ApplicationController < ActionController::Base pdhs.each do |x| @all_pdhs_for[x] = [] end - # TODO: make sure we get every page of results from API server + Collection.select(%w(portable_data_hash)).where(portable_data_hash: pdhs).distinct().each do |collection| @all_pdhs_for[collection.portable_data_hash] << collection end