From a245bd96f2ddb1e38cc3820286137a8af5bf1a75 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 14 Jun 2024 18:21:23 +0200 Subject: [PATCH] Fix invocation step_job_summary for new collections Fixes https://github.com/galaxyproject/galaxy/issues/18401 --- lib/galaxy/managers/jobs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/managers/jobs.py b/lib/galaxy/managers/jobs.py index 4e245388a3e2..403fb7266102 100644 --- a/lib/galaxy/managers/jobs.py +++ b/lib/galaxy/managers/jobs.py @@ -832,10 +832,10 @@ def summarize_jobs_to_dict(sa_session, jobs_source): "id": jobs_source.id, "populated_state": populated_state, "model": "ImplicitCollectionJobs", + "states": {}, } if populated_state == "ok": # produce state summary... - states = {} join = model.ImplicitCollectionJobs.table.join( model.ImplicitCollectionJobsJobAssociation.table.join(model.Job) ) @@ -846,8 +846,7 @@ def summarize_jobs_to_dict(sa_session, jobs_source): .group_by(model.Job.state) ) for row in sa_session.execute(statement): - states[row[0]] = row[1] - rval["states"] = states + rval["states"][row[0]] = row[1] return rval