Skip to content
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

Merged
merged 5 commits into from
Jul 11, 2024
Merged

BI-2121 - Workflows Select #378

merged 5 commits into from
Jul 11, 2024

Conversation

nickpalladino
Copy link
Member

@nickpalladino nickpalladino commented May 7, 2024

Description

Story: BI-2121

  • Retrieve workflows from backend and display in select box, call appropriate endpoint with selected workflow id

Dependencies

Testing

  • Verify that the experiment import works the same as it has prior to this card regardless of what workflow is selected (just spot check, if it runs)

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have create/modified unit tests to cover this change
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to documentation
  • I have run TAF: <link to TAF run>

@nickpalladino nickpalladino marked this pull request as ready for review May 15, 2024 13:55
@nickpalladino nickpalladino requested review from dmeidlin and mlm483 May 15, 2024 14:07
Comment on lines +50 to +56
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);
}
Copy link
Contributor

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?

Copy link
Member Author

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

Comment on lines +110 to +115
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}`;
}
Copy link
Contributor

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.

Copy link
Member Author

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.

@dmeidlin dmeidlin merged commit c6d8ed7 into develop Jul 11, 2024
1 check passed
@dmeidlin dmeidlin deleted the feature/BI-2121 branch July 11, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants