# We'll use this if we don't find a job that has completed
incomplete_job ||= j
else
- if Collection.readable_by(current_user).find_by_uuid(j.output)
+ if Collection.readable_by(current_user).find_by_portable_data_hash(j.output)
# Record the first job in the list
if !@object
@object = j
search_list = filter[2].is_a?(Enumerable) ? filter[2] : [filter[2]]
filter[2] = search_list.flat_map do |search_term|
image_search, image_tag = search_term.split(':', 2)
- Collection.uuids_for_docker_image(image_search, image_tag, @read_users)
+ Collection.uuids_for_docker_image(image_search, image_tag, @read_users).map do |uuid|
+ Collection.find_by_uuid(uuid).portable_data_hash
+ end
end
true
else