2 container_uuid = if @object.is_a?(Container) then @object.uuid elsif @object.is_a?(ContainerRequest) then @object.container_uuid end
4 cols = ContainerRequest.columns.map(&:name) - %w(id updated_at mounts)
5 reqs = ContainerRequest.select(cols).where(requesting_container_uuid: container_uuid).results
6 load_preloaded_objects(reqs)
8 child_cs = reqs.map(&:requesting_container_uuid).uniq
9 child_cs += reqs.map(&:container_uuid).uniq
10 preload_objects_for_dataclass(Container, child_cs)
12 wu = current_obj.work_unit(name, child_objects=reqs)
14 wu = current_obj.work_unit(name)
18 <div class="arv-log-refresh-control"
19 data-load-throttle="86486400000" <%# 1001 nights %>
22 render(partial: 'work_units/show_component', locals: {wu: wu})