From 11c723fb0fd98074651b7ad8022d59764974950a Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Tue, 6 Sep 2022 11:09:31 -0400 Subject: [PATCH] 19315: Add container started by to process details attributes Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/models/container.ts | 1 + src/store/processes/processes-actions.ts | 4 ++++ src/views/process-panel/process-details-attributes.tsx | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/src/models/container.ts b/src/models/container.ts index 127c2508..d6e0e04a 100644 --- a/src/models/container.ts +++ b/src/models/container.ts @@ -29,6 +29,7 @@ export interface ContainerResource extends Resource { mounts: MountType[]; runtimeConstraints: RuntimeConstraints; runtimeStatus: RuntimeStatus; + runtimeUserUuid: string; schedulingParameters: SchedulingParameters; output: string | null; containerImage: string; diff --git a/src/store/processes/processes-actions.ts b/src/store/processes/processes-actions.ts index 458efa20..8a94d8cf 100644 --- a/src/store/processes/processes-actions.ts +++ b/src/store/processes/processes-actions.ts @@ -35,6 +35,10 @@ export const loadProcess = (containerRequestUuid: string) => if (containerRequest.containerUuid) { const container = await services.containerService.get(containerRequest.containerUuid); dispatch(updateResources([container])); + if (container.runtimeUserUuid) { + const runtimeUser = await services.userService.get(container.runtimeUserUuid); + dispatch(updateResources([runtimeUser])); + } return { containerRequest, container }; } return { containerRequest }; diff --git a/src/views/process-panel/process-details-attributes.tsx b/src/views/process-panel/process-details-attributes.tsx index 4892eb33..487f78f0 100644 --- a/src/views/process-panel/process-details-attributes.tsx +++ b/src/views/process-panel/process-details-attributes.tsx @@ -95,6 +95,11 @@ export const ProcessDetailsAttributes = withStyles(styles, { withTheme: true })( + + } /> + -- 2.30.2