added runtime column, accommodated for non-process values Arvados-DCO-1.1-Signed... 19690-project-column-options
authorLisa Knox <lisaknox83@gmail.com>
Fri, 9 Dec 2022 22:58:40 +0000 (17:58 -0500)
committerLisa Knox <lisaknox83@gmail.com>
Fri, 9 Dec 2022 22:58:40 +0000 (17:58 -0500)
src/views-components/data-explorer/renderers.tsx
src/views/project-panel/project-panel.tsx

index a309d1db4c3e569edad49020c2b0e103664e339c..28728daff3e486628cad956340d83c1255673ab7 100644 (file)
@@ -1043,6 +1043,6 @@ export const ContainerRunTime = connect((state: RootState, props: { uuid: string
     }
 
     render() {
-        return renderRunTime(this.state.runtime);
+        return this.props.process ? renderRunTime(this.state.runtime) : <Typography>-</Typography>;
     }
 });
index 689456118653f64991563cdf0950f5c86dc2c1f9..67fc4b351e8f1012741d33c6a83026407ab65972 100644 (file)
@@ -25,6 +25,7 @@ import {
     ResourceFileCount,
     ResourceUUID,
     ResourceContainerUuid,
+    ContainerRunTime,
     ResourceOutputUuid,
     ResourceLogUuid,
     ResourceParentProcess,
@@ -80,6 +81,7 @@ export enum ProjectPanelColumnNames {
     FILE_COUNT = "File Count",
     UUID = "UUID",
     CONTAINER_UUID = "Container UUID",
+    RUNTIME = "Runtime",
     OUTPUT_UUID = "Output UUID",
     LOG_UUID = "Log UUID",
     PARENT_PROCESS = 'Parent Process UUID',
@@ -161,6 +163,13 @@ export const projectPanelColumns: DataColumns<string> = [
         filters: createTree(),
         render: uuid => <ResourceContainerUuid uuid={uuid}/>
     },
+    {
+        name: ProjectPanelColumnNames.RUNTIME,
+        selected: false,
+        configurable: true,
+        filters: createTree(),
+        render: uuid => <ContainerRunTime uuid={uuid} />
+    },
     {
         name: ProjectPanelColumnNames.OUTPUT_UUID,
         selected: false,