From c57ffe4e79428550ce1ec5834b88ac7a0993d18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20G=C3=B6bel?= <dgoebel@techfak.uni-bielefeld.de> Date: Tue, 26 Sep 2023 15:49:08 +0200 Subject: [PATCH] Set right IDs in workflow version deprecation API call #64 --- src/views/workflows/ArbitraryWorkflowView.vue | 10 ++++++++++ src/views/workflows/WorkflowView.vue | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/workflows/ArbitraryWorkflowView.vue b/src/views/workflows/ArbitraryWorkflowView.vue index ee5f05c..a35e5c1 100644 --- a/src/views/workflows/ArbitraryWorkflowView.vue +++ b/src/views/workflows/ArbitraryWorkflowView.vue @@ -103,6 +103,16 @@ function startWorkflow( report_output_bucket: report_output_bucket, repository_url: workflowState.workflow.repository_url, token: workflowState.workflow.token ?? undefined, + mode: + (workflowState.workflow.modes ?? []).length > 0 + ? { + name: "", + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + entrypoint: workflowState.workflow.modes![0].entrypoint, + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + schema_path: workflowState.workflow.modes![0].schema_path, + } + : undefined, }) .then(() => { router.push({ diff --git a/src/views/workflows/WorkflowView.vue b/src/views/workflows/WorkflowView.vue index 32e1dc3..83d81b1 100644 --- a/src/views/workflows/WorkflowView.vue +++ b/src/views/workflows/WorkflowView.vue @@ -249,8 +249,8 @@ function updateWorkflow(workflowId: string) { function deprecateCurrentWorkflowVersion() { if (props.versionId) { WorkflowVersionService.workflowVersionDeprecateWorkflowVersion( - props.versionId, props.workflowId, + props.versionId, ).then((version) => { if (workflowState.workflow) { const versionIndex = workflowState.workflow.versions.findIndex( -- GitLab