export const ResourceProcessState = connect(
(state: RootState, props: { uuid: string }) => {
const process = getProcess(props.uuid)(state.resources)
- // console.log('PROCESS>>>', process)
return { state: process?.container?.state ? process?.container?.state : '' };
})((props: { state: string }) => renderProcessState(props.state));
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)
return { uuid: outputUuid ? outputUuid : '' };
})((props: { uuid: string }) => renderUuid({ uuid: props.uuid }));
+export const ResourceLogUuid = connect(
+ (state: RootState, props: { uuid: string }) => {
+ const process = getProcess(props.uuid)(state.resources)
+ const logUuid = process?.containerRequest.logUuid
+ return { uuid: logUuid ? logUuid : '' };
+ })((props: { uuid: string }) => renderUuid({ uuid: props.uuid }));
+
export const ResourceParentProcess = connect(
(state: RootState, props: { uuid: string }) => {
const process = getProcess(props.uuid)(state.resources)
ResourceType,
ResourceUUID,
ResourceOutputUuid,
+ ResourceLogUuid,
ResourceProcessUuid,
ResourceProcessState,
ResourceParentProcess,
STATE = 'State',
CONTAINER_UUID = "Container UUID",
OUTPUT_UUID = "Output UUID",
+ LOG_UUID = "Log UUID",
PARENT_PROCESS = 'Parent process',
CREATED_AT = "Date created",
LAST_MODIFIED = "Last modified",
filters: createTree(),
render: uuid => <ResourceOutputUuid uuid={uuid}/>
},
+ {
+ name: ProjectPanelColumnNames.LOG_UUID,
+ selected: false,
+ configurable: true,
+ filters: createTree(),
+ render: uuid => <ResourceLogUuid uuid={uuid}/>
+ },
{
name: ProjectPanelColumnNames.STATE,
selected: true,