From 5375b429e1547c664a19f1e3fe55fd63e2cb32b7 Mon Sep 17 00:00:00 2001 From: John Davis Date: Mon, 8 Apr 2024 15:24:03 -0400 Subject: [PATCH] Fix bug: Make model serializable --- lib/galaxy/model/__init__.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 35eb2969af91..cdeae03cf4d8 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -8037,6 +8037,19 @@ def dependent_workflow_step_index(self): def history_id(self): return self.workflow_invocation.history_id + def _serialize(self, id_encoder, serialization_options): + wfi_attrs = dict_for(self) + serialization_options.attach_identifier(id_encoder, self, wfi_attrs) + wfi_attrs["reason"] = unicodify(self.reason) + wfi_attrs["details"] = unicodify(self.details) + wfi_attrs["output_name"] = unicodify(self.output_name) + wfi_attrs["workflow_step_id"] = self.workflow_step_id + wfi_attrs["dependent_workflow_step_id"] = self.dependent_workflow_step_id + wfi_attrs["job_id"] = self.job_id + wfi_attrs["hda_id"] = self.hda_id + wfi_attrs["hdca_id"] = self.hdca_id + return wfi_attrs + class WorkflowInvocationStep(Base, Dictifiable, Serializable): __tablename__ = "workflow_invocation_step"