From ebbfb0b765f6ecd1b2dc26ce9915642abf55cde8 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 16 Sep 2022 18:56:35 +0200 Subject: [PATCH 1/9] Submit workflow input paramters as inputs in expanded tool form This fixes recording optional data input module use in the expanded tool form (and is closer to how we want to use the API). Fixes https://github.com/galaxyproject/galaxy/issues/14611 --- client/src/components/Workflow/Run/WorkflowRunForm.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/components/Workflow/Run/WorkflowRunForm.vue b/client/src/components/Workflow/Run/WorkflowRunForm.vue index 67669e38790..84db753a236 100644 --- a/client/src/components/Workflow/Run/WorkflowRunForm.vue +++ b/client/src/components/Workflow/Run/WorkflowRunForm.vue @@ -93,6 +93,7 @@ export default { stepValidations: {}, stepScrollTo: {}, wpData: {}, + inputs: {}, historyData: {}, useCachedJobs: false, historyInputs: [ @@ -155,8 +156,7 @@ export default { return []; }, onDefaultStepInputs(stepId, data) { - this.stepData[stepId] = data; - this.stepData = Object.assign({}, this.stepData); + this.inputs[stepId] = data.input; }, onToolStepInputs(stepId, data) { this.stepData[stepId] = data; @@ -201,6 +201,7 @@ export default { resource_params: this.resourceData, replacement_params: this.wpData, use_cached_job: this.useCachedJobs, + inputs: this.inputs, parameters: parameters, // Tool form will submit flat maps for each parameter // (e.g. "repeat_0|cond|param": "foo" instead of nested From eacf1f9b5cf8018a5ba4e794948e8a7288b6ecf7 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Fri, 16 Sep 2022 20:50:30 +0200 Subject: [PATCH 2/9] Render subworkflow step with replacable form param component Tool and subworkflow steps can have replacement parameters --- client/src/components/Workflow/Run/WorkflowRunForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Workflow/Run/WorkflowRunForm.vue b/client/src/components/Workflow/Run/WorkflowRunForm.vue index 84db753a236..b12355b132e 100644 --- a/client/src/components/Workflow/Run/WorkflowRunForm.vue +++ b/client/src/components/Workflow/Run/WorkflowRunForm.vue @@ -37,7 +37,7 @@
Date: Fri, 16 Sep 2022 21:09:54 +0200 Subject: [PATCH 3/9] Rename WorkflowRunToolStep to WorkflowRunDefaultStep, WorkflowRunDefaultStep to WorkflowInputStep I think these are better names that describe what they are used for. --- .../Workflow/Run/WorkflowRunDefaultStep.vue | 80 +++++++++----- .../Workflow/Run/WorkflowRunForm.vue | 8 +- .../Workflow/Run/WorkflowRunInputStep.vue | 83 +++++++++++++++ .../Workflow/Run/WorkflowRunToolStep.vue | 100 ------------------ .../WorkflowInvocationStep.vue | 14 +-- 5 files changed, 141 insertions(+), 144 deletions(-) create mode 100644 client/src/components/Workflow/Run/WorkflowRunInputStep.vue delete mode 100644 client/src/components/Workflow/Run/WorkflowRunToolStep.vue diff --git a/client/src/components/Workflow/Run/WorkflowRunDefaultStep.vue b/client/src/components/Workflow/Run/WorkflowRunDefaultStep.vue index ba49c2c49ce..beae0371d3e 100644 --- a/client/src/components/Workflow/Run/WorkflowRunDefaultStep.vue +++ b/client/src/components/Workflow/Run/WorkflowRunDefaultStep.vue @@ -2,13 +2,19 @@
@@ -17,52 +23,43 @@ diff --git a/client/src/components/Workflow/Run/WorkflowRunToolStep.vue b/client/src/components/Workflow/Run/WorkflowRunToolStep.vue deleted file mode 100644 index a90e575aa0b..00000000000 --- a/client/src/components/Workflow/Run/WorkflowRunToolStep.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationStep.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationStep.vue index 26df5c7301f..d76ddaf1a19 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationStep.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationStep.vue @@ -86,6 +86,7 @@