[ARVADOS-WORKBENCH2] updated: 1.3.0-340-gf65a58f3
Git user
git at public.curoverse.com
Tue Jan 15 11:03:27 EST 2019
Summary of changes:
src/store/process-panel/process-panel-actions.ts | 2 +-
src/store/workflow-panel/workflow-panel-actions.ts | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
via f65a58f3ce100227dd8bc974fd2548ec0bc97399 (commit)
from ca4dd279c19b62eddb5bc9c4930ce8136d525db1 (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 f65a58f3ce100227dd8bc974fd2548ec0bc97399
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date: Tue Jan 15 17:03:15 2019 +0100
refs #14370-display-correct-description
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
diff --git a/src/store/process-panel/process-panel-actions.ts b/src/store/process-panel/process-panel-actions.ts
index f1f74f6d..42a718bd 100644
--- a/src/store/process-panel/process-panel-actions.ts
+++ b/src/store/process-panel/process-panel-actions.ts
@@ -26,7 +26,6 @@ export const loadProcessPanel = (uuid: string) =>
(dispatch: Dispatch) => {
dispatch<any>(loadProcess(uuid));
dispatch(initProcessPanelFilters);
- dispatch<any>(showWorkflowDetails(uuid));
};
export const navigateToOutput = (uuid: string) =>
@@ -42,6 +41,7 @@ export const navigateToOutput = (uuid: string) =>
export const openWorkflow = (uuid: string) =>
(dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
dispatch<any>(navigateToWorkflows);
+ dispatch<any>(showWorkflowDetails(uuid));
};
export const initProcessPanelFilters = procesPanelActions.SET_PROCESS_PANEL_FILTERS([
diff --git a/src/store/workflow-panel/workflow-panel-actions.ts b/src/store/workflow-panel/workflow-panel-actions.ts
index 2f00bba6..03ddf341 100644
--- a/src/store/workflow-panel/workflow-panel-actions.ts
+++ b/src/store/workflow-panel/workflow-panel-actions.ts
@@ -61,5 +61,7 @@ export const showWorkflowDetails = (uuid: string) =>
export const getWorkflowDetails = (state: RootState) => {
const uuid = getProperty<string>(WORKFLOW_PANEL_DETAILS_UUID)(state.properties);
- return uuid ? getResource<WorkflowResource>(uuid)(state.resources) : undefined;
+ const workflows = state.runProcessPanel.workflows;
+ const workflow = workflows.find(workflow => workflow.uuid === uuid);
+ return workflow || undefined;
};
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list