Skip to content
Snippets Groups Projects
Commit 90d51a1a authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch...

Merge branch 'bugfix/64-switch-workflow-id-and-version-id-in-version-deprecation-api-call' into 'development'

Resolve "Switch workflow id and version id in version deprecation API call"

Closes #64

See merge request !58
parents 559d9ad3 c57ffe4e
No related branches found
No related tags found
2 merge requests!84Remove development branch,!58Resolve "Switch workflow id and version id in version deprecation API call"
...@@ -103,6 +103,16 @@ function startWorkflow( ...@@ -103,6 +103,16 @@ function startWorkflow(
report_output_bucket: report_output_bucket, report_output_bucket: report_output_bucket,
repository_url: workflowState.workflow.repository_url, repository_url: workflowState.workflow.repository_url,
token: workflowState.workflow.token ?? undefined, 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(() => { .then(() => {
router.push({ router.push({
......
...@@ -249,8 +249,8 @@ function updateWorkflow(workflowId: string) { ...@@ -249,8 +249,8 @@ function updateWorkflow(workflowId: string) {
function deprecateCurrentWorkflowVersion() { function deprecateCurrentWorkflowVersion() {
if (props.versionId) { if (props.versionId) {
WorkflowVersionService.workflowVersionDeprecateWorkflowVersion( WorkflowVersionService.workflowVersionDeprecateWorkflowVersion(
props.versionId,
props.workflowId, props.workflowId,
props.versionId,
).then((version) => { ).then((version) => {
if (workflowState.workflow) { if (workflowState.workflow) {
const versionIndex = workflowState.workflow.versions.findIndex( const versionIndex = workflowState.workflow.versions.findIndex(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment