Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[23.0] Fix bug: Make model serializable #17941

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading