@@ -11,6 +11,7 @@ import DatasetInfo from './DatasetInfo'
1111import IconButton from '@material-ui/core/IconButton'
1212import MqText from '../core/text/MqText'
1313import React , { FunctionComponent , SetStateAction } from 'react'
14+ import RunStatus from '../jobs/RunStatus'
1415import transitions from '@material-ui/core/styles/transitions'
1516
1617const styles = ( theme : ITheme ) => {
@@ -25,7 +26,7 @@ const styles = (theme: ITheme) => {
2526 } )
2627}
2728
28- const DATASET_VERSIONS_COLUMNS = [ 'Version' , 'Created At' , 'Field Count' , 'Lifecycle State' ]
29+ const DATASET_VERSIONS_COLUMNS = [ 'Version' , 'Created At' , 'Field Count' , 'Dataset Creator (Run)' , ' Lifecycle State']
2930
3031interface DatasetVersionsProps {
3132 versions : DatasetVersion [ ]
@@ -53,7 +54,11 @@ const DatasetVersions: FunctionComponent<
5354 < ArrowBackIosRounded fontSize = { 'small' } />
5455 </ IconButton >
5556 </ Box >
56- < DatasetInfo datasetFields = { infoView . fields } facets = { infoView . facets } />
57+ < DatasetInfo
58+ datasetFields = { infoView . fields }
59+ facets = { infoView . facets }
60+ run = { infoView . createdByRun }
61+ />
5762 </ >
5863 )
5964 }
@@ -83,6 +88,18 @@ const DatasetVersions: FunctionComponent<
8388 < TableCell align = 'left' > { version . version } </ TableCell >
8489 < TableCell align = 'left' > { formatUpdatedAt ( version . createdAt ) } </ TableCell >
8590 < TableCell align = 'left' > { version . fields . length } </ TableCell >
91+ < TableCell align = 'left' >
92+ < Box display = { 'flex' } alignItems = { 'center' } >
93+ { version . createdByRun ? (
94+ < >
95+ < RunStatus run = { version . createdByRun } />
96+ { version . createdByRun ? version . createdByRun . id : 'N/A' }
97+ </ >
98+ ) : (
99+ 'N/A'
100+ ) }
101+ </ Box >
102+ </ TableCell >
86103 < TableCell align = 'left' > { version . lifecycleState } </ TableCell >
87104 </ TableRow >
88105 )
0 commit comments