items = []
jobs = {}
- results = Job.where(uuid: @proxied.job_ids.values).results
+ results = Job.where(uuid: @proxied.job_ids.values).with_count("none").results
results.each do |j|
jobs[j.uuid] = j
end
end
def state_label
- # Show "Cancelled" instead of "Failed" if there are no failed
- # components. #12840
if get(:state) != "Failed"
return super
end
+ if get(:components_summary).andand[:failed].andand > 0
+ return super
+ end
+ # Show "Cancelled" instead of "Failed" if there are no failed
+ # components. #12840
get(:components).each do |_, c|
jstate = c[:job][:state] rescue nil
if jstate == "Failed"