[arvados-workbench2] updated: 2.4.0-477-gbdd9fd7a

git repository hosting git at public.arvados.org
Wed Dec 21 22:46:23 UTC 2022


Summary of changes:
 src/store/workflow-panel/workflow-panel-actions.ts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

       via  bdd9fd7a53ea02db15e23acb03f995ee42b0c594 (commit)
      from  234df49c86d0d1aece8aa9264578eac515b42eff (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit bdd9fd7a53ea02db15e23acb03f995ee42b0c594
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Wed Dec 21 17:45:38 2022 -0500

    openRunProcess sets defaults
    
    refs #19681
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/src/store/workflow-panel/workflow-panel-actions.ts b/src/store/workflow-panel/workflow-panel-actions.ts
index 912f7630..dfabc892 100644
--- a/src/store/workflow-panel/workflow-panel-actions.ts
+++ b/src/store/workflow-panel/workflow-panel-actions.ts
@@ -24,6 +24,7 @@ import { getResource } from 'store/resources/resources';
 import { ProjectResource } from 'models/project';
 import { UserResource } from 'models/user';
 import { getUserUuid } from "common/getuser";
+import { WorkflowResource, WorkflowRunnerResources, getWorkflow, getWorkflowInputs, parseWorkflowDefinition } from 'models/workflow';
 
 export const WORKFLOW_PANEL_ID = "workflowPanel";
 const UUID_PREFIX_PROPERTY_NAME = 'uuidPrefix';
@@ -74,6 +75,18 @@ export const openRunProcess = (workflowUuid: string, ownerUuid?: string, name?:
 
             dispatch(initialize(RUN_PROCESS_BASIC_FORM, { name, owner }));
 
+            const definition = parseWorkflowDefinition(workflow);
+            if (definition) {
+                const inputs = getWorkflowInputs(definition);
+                if (inputs) {
+                    const values = inputs.reduce((values, input) => ({
+                        ...values,
+                        [input.id]: input.default,
+                    }), {});
+                    dispatch(initialize(RUN_PROCESS_INPUTS_FORM, values));
+                }
+            }
+
             if (inputObj) {
                 dispatch(initialize(RUN_PROCESS_INPUTS_FORM, inputObj));
             }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list