Skip to content

Commit

Permalink
Add missing fields to payload of update operation
Browse files Browse the repository at this point in the history
  • Loading branch information
heisner-tillman committed May 11, 2024
1 parent 85a2295 commit 08519bb
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lib/galaxy/schema/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1044,25 +1044,25 @@ class WorkflowDictFormat2WrappedYamlSummary(Model):


class WorkflowUpdatePayload(Model):
workflow: Any = Field(
...,
workflow: Optional[Any] = Field(
None,
title="Workflow",
description="The json description of the workflow as would be produced by GET workflows/<id>/download or given to `POST workflows`",
description="The json description of the workflow as would be produced by GET workflows/<id>/download or given to `POST workflows`. The workflow contents will be updated to target this.",
)
name: Optional[str] = Field(
None,
title="Name",
description="String name for the workflow, if not present in payload, name defaults to existing name",
description="Name for the workflow, if not present in payload, name defaults to existing name",
)
annotation: Optional[str] = Field(
None,
title="Annotation",
description="String annotation for the workflow, if not present in payload, annotation defaults to existing annotation",
description="Annotation for the workflow, if not present in payload, annotation defaults to existing annotation",
)
menu_entry: Optional[bool] = Field(
None,
title="Menu Entry",
description="Boolean marking if the workflow should appear in the user's menu, if not present, workflow menu entries are not modified",
description="Flag indicating if the workflow should appear in the user's menu, if not present, workflow menu entries are not modified",
)
tags: Optional[List[str]] = Field(
None,
Expand All @@ -1072,6 +1072,12 @@ class WorkflowUpdatePayload(Model):
from_tool_form: Optional[bool] = Field(
None, title="From Tool Form", description="True iff encoded state coming in is encoded for the tool form."
)
published: Optional[bool] = Field(
None,
)
importable: Optional[bool] = Field(
None,
)


class WorkflowCreatePayload(Model):
Expand Down

0 comments on commit 08519bb

Please sign in to comment.