From e4cd8a30b7ad570de5bfefb488f3a8201f90eee2 Mon Sep 17 00:00:00 2001 From: Tillman Date: Sat, 23 Dec 2023 15:42:09 +0100 Subject: [PATCH] Adjust type of unused path parameter for invocation_step operations --- lib/galaxy/webapps/galaxy/api/workflows.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/api/workflows.py b/lib/galaxy/webapps/galaxy/api/workflows.py index 9be85c304b4..e6caa227829 100644 --- a/lib/galaxy/webapps/galaxy/api/workflows.py +++ b/lib/galaxy/webapps/galaxy/api/workflows.py @@ -944,7 +944,7 @@ StoredWorkflowIDPathParam: DecodedDatabaseIdField = Path( ..., title="Stored Workflow ID", description="The encoded database identifier of the Stored Workflow." ) -InvocationIDPathParam: DecodedDatabaseIdField = Path( +InvocationIDPathParam = Path( ..., title="Invocation ID", description="The encoded database identifier of the Invocation." ) @@ -1452,7 +1452,7 @@ class FastAPIInvocations: def invocation_step( self, trans: ProvidesUserContext = DependsOnTrans, - invocation_id: DecodedDatabaseIdField = InvocationIDPathParam, + invocation_id: Union[DecodedDatabaseIdField, str] = InvocationIDPathParam, step_id: DecodedDatabaseIdField = WorkflowInvocationStepIDPathParam, ) -> InvocationStep: """An alias for `GET /api/invocations/steps/{step_id}`. `invocation_id` is ignored.""" @@ -1471,7 +1471,7 @@ class FastAPIInvocations: self, trans: ProvidesUserContext = DependsOnTrans, workflow_id: DecodedDatabaseIdField = StoredWorkflowIDPathParam, - invocation_id: DecodedDatabaseIdField = InvocationIDPathParam, + invocation_id: Union[DecodedDatabaseIdField, str] = InvocationIDPathParam, step_id: DecodedDatabaseIdField = WorkflowInvocationStepIDPathParam, ) -> InvocationStep: """An alias for `GET /api/invocations/{invocation_id}/steps/{step_id}`. `workflow_id` and `invocation_id` are ignored."""