-
Notifications
You must be signed in to change notification settings - Fork 1
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
BI-2121 - Workflows Select #378
Conversation
static async getWorkflowsForMapping(mappingId: string | undefined) : Promise<BiResponse> { | ||
const { data } = await api.call({ | ||
url: `${process.env.VUE_APP_BI_API_V1_PATH}/import/mappings/${mappingId}/workflows`, | ||
method: 'get' | ||
}) as Response; | ||
return new BiResponse(data); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can one mapping have many workflows associated with it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya, the experiment import mapping has three workflows associated with it
static async updateUploadData(programId: string, mappingId: string, uploadId: string, workflowId: string | undefined, userInput: any, commit: boolean) { | ||
let url = `${process.env.VUE_APP_BI_API_V1_PATH}/programs/${programId}/import/mappings/${mappingId}/data/${uploadId}`; | ||
|
||
if (workflowId !== undefined) { | ||
url = `${process.env.VUE_APP_BI_API_V1_PATH}/programs/${programId}/import/mappings/${mappingId}/workflows/${workflowId}/data/${uploadId}`; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense that only one workflow can be interacted with at once. Unless there is a plan to chain multiple workflows into pipelines? Probably wouldn't make sense to make that transparent to the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya, I think a single workflow at this level makes sense. Maybe for the updating of datasets there could internally be different workflows for sub obs unit vs exp unit that are conditionally kicked off by the general append / update workflow.
Description
Story: BI-2121
Dependencies
Testing
Checklist: