[ARVADOS-WORKBENCH2] updated: 1.2.0-704-g3db7aa0

Git user git at public.curoverse.com
Sun Oct 21 17:36:37 EDT 2018


Summary of changes:
 src/store/run-process-panel/run-process-panel-actions.ts | 4 +++-
 src/store/run-process-panel/run-process-panel-reducer.ts | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

       via  3db7aa06b7dcafdb94e88c7a2e0f1a314fae659c (commit)
      from  6a1b2741a1ac383be09971a957553d2d15de6d5b (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 3db7aa06b7dcafdb94e88c7a2e0f1a314fae659c
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Sun Oct 21 23:36:19 2018 +0200

    Add action for resseting run process panel
    
    Feature #14361
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/store/run-process-panel/run-process-panel-actions.ts b/src/store/run-process-panel/run-process-panel-actions.ts
index 2fd4b04..2c5c9b6 100644
--- a/src/store/run-process-panel/run-process-panel-actions.ts
+++ b/src/store/run-process-panel/run-process-panel-actions.ts
@@ -22,7 +22,8 @@ export const runProcessPanelActions = unionize({
     SET_CURRENT_STEP: ofType<number>(),
     SET_WORKFLOWS: ofType<WorkflowResource[]>(),
     SET_SELECTED_WORKFLOW: ofType<WorkflowResource>(),
-    SEARCH_WORKFLOWS: ofType<string>()
+    SEARCH_WORKFLOWS: ofType<string>(),
+    RESET_RUN_PROCESS_PANEL: ofType<{}>(),
 });
 
 export interface RunProcessSecondStepDataFormProps {
@@ -37,6 +38,7 @@ export type RunProcessPanelAction = UnionOf<typeof runProcessPanelActions>;
 export const loadRunProcessPanel = () =>
     async (dispatch: Dispatch<any>, getState: () => RootState, services: ServiceRepository) => {
         try {
+            dispatch(runProcessPanelActions.RESET_RUN_PROCESS_PANEL());
             const response = await services.workflowService.list();
             dispatch(runProcessPanelActions.SET_WORKFLOWS(response.items));
         } catch (e) {
diff --git a/src/store/run-process-panel/run-process-panel-reducer.ts b/src/store/run-process-panel/run-process-panel-reducer.ts
index 0ad06be..0f22041 100644
--- a/src/store/run-process-panel/run-process-panel-reducer.ts
+++ b/src/store/run-process-panel/run-process-panel-reducer.ts
@@ -32,7 +32,8 @@ export const runProcessPanelReducer = (state = initialState, action: RunProcessP
             selectedWorkflow,
             inputs: getWorkflowInputs(parseWorkflowDefinition(selectedWorkflow)) || [],
         }),
-        SET_WORKFLOWS: workflows => ({ ...state, workflows, searchWorkflows: workflows }), 
+        SET_WORKFLOWS: workflows => ({ ...state, workflows, searchWorkflows: workflows }),
         SEARCH_WORKFLOWS: term => ({ ...state, searchWorkflows: state.workflows.filter(workflow => workflow.name.includes(term)) }),
+        RESET_RUN_PROCESS_PANEL: () => ({ ...initialState, processOwnerUuid: state.processOwnerUuid }),
         default: () => state
     });
\ No newline at end of file

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list