[ARVADOS-WORKBENCH2] updated: 1.2.0-719-gdf89415

Git user git at public.curoverse.com
Tue Oct 23 06:18:13 EDT 2018


Summary of changes:
 src/store/run-process-panel/run-process-panel-reducer.ts | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

       via  df894154236c20546f8c4439ecc81815413598f7 (commit)
      from  d4cc26db7f326443a1f316c8e43be13eaa559951 (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 df894154236c20546f8c4439ecc81815413598f7
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Tue Oct 23 12:18:01 2018 +0200

    Fix run a process workflows case sensitive search
    
    refs #
    
    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-reducer.ts b/src/store/run-process-panel/run-process-panel-reducer.ts
index 0f22041..560e91c 100644
--- a/src/store/run-process-panel/run-process-panel-reducer.ts
+++ b/src/store/run-process-panel/run-process-panel-reducer.ts
@@ -33,7 +33,13 @@ export const runProcessPanelReducer = (state = initialState, action: RunProcessP
             inputs: getWorkflowInputs(parseWorkflowDefinition(selectedWorkflow)) || [],
         }),
         SET_WORKFLOWS: workflows => ({ ...state, workflows, searchWorkflows: workflows }),
-        SEARCH_WORKFLOWS: term => ({ ...state, searchWorkflows: state.workflows.filter(workflow => workflow.name.includes(term)) }),
+        SEARCH_WORKFLOWS: term => {
+            const termRegex = new RegExp(term, 'i');
+            return {
+                ...state,
+                searchWorkflows: state.workflows.filter(workflow => termRegex.test(workflow.name)),
+            };
+        },
         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