Skip to content

Commit

Permalink
Fix bug: Make model serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Apr 8, 2024
1 parent 77fc849 commit 11a7af5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8037,6 +8037,18 @@ 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"
Expand Down

0 comments on commit 11a7af5

Please sign in to comment.