# fetch children of all the active crs in one call, if there are any
active_crs = recent_crs.each {|cr| cr if (cr.priority.andand > 0 and cr.state != 'Final' and cr.container_uuid)}
- active_cr_uuids = active_crs.map(&:uuid)
- active_cr_containers = active_crs.map {|cr| cr.container_uuid}.compact.uniq
- cr_children = {}
- if active_cr_containers.any?
- active_cr_containers.each { |c| cr_children[c] = []}
- cols = ContainerRequest.columns.map(&:name) - %w(id updated_at mounts)
- end
wus = {}
outputs = []
recent_procs.each do |p|
- if p.uuid.in?(active_cr_uuids)
- wu = p.work_unit(nil, child_objects=cr_children[p.container_uuid])
- else
- wu = p.work_unit
- end
+ wu = p.work_unit
wus[p] = wu
outputs << wu.outputs
{
fixture: 'container_requests',
state: 'running',
- selectors: [['div.progress', true]]
+ selectors: [['.label-info', true, 'Running']]
},
{
fixture: 'pipeline_instances',
{
fixture: 'pipeline_instances',
state: 'pipeline_in_running_state',
- selectors: [['div.progress', true]]
+ selectors: [['.label-info', true, 'Running']]
},
].each do |c|
uuid = api_fixture(c[:fixture])[c[:state]]['uuid']