Also, adds container's started_at renderer for future use.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
</Typography>;
});
+export const ProcessStartDate = connect(
+ (state: RootState, props: { uuid: string }) => {
+ const process = getProcess(props.uuid)(state.resources);
+ return { date: ( process && process.container ) ? process.container.startedAt : '' };
+ })((props: { date: string }) => renderDate(props.date));
+
export const renderRunTime = (time: number) =>
<Typography noWrap style={{ minWidth: '45px' }}>
{formatTime(time, true)}
ResourceName,
ResourceOwner,
ResourceType,
+ ContainerRunTime,
ResourceCreatedAtDate
} from '~/views-components/data-explorer/renderers';
import { ProcessIcon } from '~/components/icon/icon';
STATUS = "Status",
TYPE = "Type",
OWNER = "Owner",
- CREATED_AT = "Started at"
+ CREATED_AT = "Created at",
+ RUNTIME = "Run Time"
}
export interface AllProcessesPanelFilter extends DataTableFilterItem {
sortDirection: SortDirection.DESC,
filters: createTree(),
render: uuid => <ResourceCreatedAtDate uuid={uuid} />
+ },
+ {
+ name: AllProcessesPanelColumnNames.RUNTIME,
+ selected: true,
+ configurable: true,
+ filters: createTree(),
+ render: uuid => <ContainerRunTime uuid={uuid} />
}
];