[arvados-workbench2] updated: 2.5.0-3-g38db7657
git repository hosting
git at public.arvados.org
Tue Jan 31 16:48:28 UTC 2023
Summary of changes:
src/store/processes/processes-actions.ts | 12 +++++++++---
src/store/workbench/workbench-actions.ts | 12 +++++++-----
2 files changed, 16 insertions(+), 8 deletions(-)
via 38db7657138744ed97b924bc3396a1ec00de9be3 (commit)
from 153c4516226560081abd11aed9dea421971595b4 (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 38db7657138744ed97b924bc3396a1ec00de9be3
Author: Stephen Smith <stephen at curii.com>
Date: Tue Jan 31 11:47:53 2023 -0500
19900: Catch exceptions loading process container request
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/src/store/processes/processes-actions.ts b/src/store/processes/processes-actions.ts
index 4dfef5a0..305a4e7c 100644
--- a/src/store/processes/processes-actions.ts
+++ b/src/store/processes/processes-actions.ts
@@ -22,11 +22,17 @@ import { ProjectResource } from "models/project";
import { UserResource } from "models/user";
import { CommandOutputParameter } from "cwlts/mappings/v1.0/CommandOutputParameter";
import { ContainerResource } from "models/container";
+import { ContainerRequestResource } from "models/container-request";
export const loadProcess = (containerRequestUuid: string) =>
- async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository): Promise<Process> => {
- const containerRequest = await services.containerRequestService.get(containerRequestUuid);
- dispatch<any>(updateResources([containerRequest]));
+ async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository): Promise<Process | undefined> => {
+ let containerRequest: ContainerRequestResource | undefined = undefined;
+ try {
+ containerRequest = await services.containerRequestService.get(containerRequestUuid);
+ dispatch<any>(updateResources([containerRequest]));
+ } catch {
+ return undefined;
+ }
if (containerRequest.outputUuid) {
try {
diff --git a/src/store/workbench/workbench-actions.ts b/src/store/workbench/workbench-actions.ts
index 0ad3fb8e..761ffb75 100644
--- a/src/store/workbench/workbench-actions.ts
+++ b/src/store/workbench/workbench-actions.ts
@@ -579,11 +579,13 @@ export const loadProcess = (uuid: string) =>
handleFirstTimeLoad(async (dispatch: Dispatch, getState: () => RootState) => {
dispatch<any>(loadProcessPanel(uuid));
const process = await dispatch<any>(processesActions.loadProcess(uuid));
- await dispatch<any>(
- activateSidePanelTreeItem(process.containerRequest.ownerUuid)
- );
- dispatch<any>(setProcessBreadcrumbs(uuid));
- dispatch<any>(loadDetailsPanel(uuid));
+ if (process) {
+ await dispatch<any>(
+ activateSidePanelTreeItem(process.containerRequest.ownerUuid)
+ );
+ dispatch<any>(setProcessBreadcrumbs(uuid));
+ dispatch<any>(loadDetailsPanel(uuid));
+ }
});
export const updateProcess =
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list