From: Lisa Knox Date: Thu, 1 Dec 2022 20:04:56 +0000 (-0500) Subject: output UUID column up X-Git-Tag: 2.5.0~15^2~10 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/4ee2be435af08b2d7b4ff07fb41f190fa41e35f7 output UUID column up Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- diff --git a/src/views-components/data-explorer/renderers.tsx b/src/views-components/data-explorer/renderers.tsx index b826aa2b..aa555a00 100644 --- a/src/views-components/data-explorer/renderers.tsx +++ b/src/views-components/data-explorer/renderers.tsx @@ -679,6 +679,14 @@ export const ResourceProcessUuid = connect( return { uuid: process?.container?.uuid ? process?.container?.uuid : '' }; })((props: { uuid: string }) => renderUuid({ uuid: props.uuid })); + +export const ResourceOutputUuid = connect( + (state: RootState, props: { uuid: string }) => { + const process = getProcess(props.uuid)(state.resources) + const outputUuid = process?.containerRequest.outputUuid + return { uuid: outputUuid ? outputUuid : '' }; + })((props: { uuid: string }) => renderUuid({ uuid: props.uuid })); + export const ResourceParentProcess = connect( (state: RootState, props: { uuid: string }) => { const process = getProcess(props.uuid)(state.resources) diff --git a/src/views/project-panel/project-panel.tsx b/src/views/project-panel/project-panel.tsx index 880ff3f2..3351e9d3 100644 --- a/src/views/project-panel/project-panel.tsx +++ b/src/views/project-panel/project-panel.tsx @@ -25,6 +25,7 @@ import { ProcessStatus, ResourceType, ResourceUUID, + ResourceOutputUuid, ResourceProcessUuid, ResourceProcessState, ResourceParentProcess, @@ -79,6 +80,7 @@ export enum ProjectPanelColumnNames { UUID = "UUID", STATE = 'State', CONTAINER_UUID = "Container UUID", + OUTPUT_UUID = "Output UUID", PARENT_PROCESS = 'Parent process', CREATED_AT = "Date created", LAST_MODIFIED = "Last modified", @@ -152,6 +154,13 @@ export const projectPanelColumns: DataColumns = [ filters: createTree(), render: uuid => }, + { + name: ProjectPanelColumnNames.OUTPUT_UUID, + selected: false, + configurable: true, + filters: createTree(), + render: uuid => + }, { name: ProjectPanelColumnNames.STATE, selected: true,