Skip to content

Commit 52d183f

Browse files
authored
Merge branch 'main' into proposal/change-version-history-display
2 parents 826ed70 + 2523965 commit 52d183f

8 files changed

Lines changed: 26 additions & 13 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ subprojects {
5555
dropwizardVersion = '2.1.12'
5656
jacocoVersion = '0.8.11'
5757
junit5Version = '5.10.2'
58-
lombokVersion = '1.18.32'
58+
lombokVersion = '1.18.34'
5959
mockitoVersion = '5.4.0'
6060
openlineageVersion = '1.13.1'
6161
slf4jVersion = '1.7.36'

web/src/components/jobs/JobTags.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ const JobTags: React.FC<IProps> = (props) => {
219219
<MQText label sx={{ fontSize: '1.25rem' }} bottomMargin>
220220
Select a Tag to change
221221
</MQText>
222-
<MQText label sx={{ fontSize: '0.85rem' }}>Tag</MQText>
222+
<MQText label sx={{ fontSize: '0.85rem' }}>
223+
Tag
224+
</MQText>
223225
<Autocomplete
224226
options={tagData.map((option) => option.name)}
225227
autoSelect

web/src/components/jobs/RunInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ const RunInfo: FunctionComponent<RunInfoProps> = (props) => {
5959
return (
6060
<Box>
6161
{<MqCode code={(jobFacets?.sql as SqlFacet)?.query} language={'sql'} />}
62-
{
62+
{jobFacets?.sourceCode && (
6363
<MqCode
6464
code={(jobFacets.sourceCode as SourceCodeFacet)?.sourceCode}
6565
language={(jobFacets.sourceCode as SourceCodeFacet)?.language}
6666
/>
67-
}
67+
)}
6868
{run.facets && (
6969
<Box mt={2}>
7070
<Box mb={1}>

web/src/components/jobs/Runs.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,12 @@ const Runs: FunctionComponent<RunsProps> = (props) => {
136136
}}
137137
onClick={() => handleClick(run)}
138138
>
139-
<TableCell align='left'>{run.id}</TableCell>
139+
<TableCell align='left'>
140+
<Box display={'flex'} alignItems={'center'}>
141+
{run.id.substring(0, 8)}...
142+
<MqCopy string={run.id} />{' '}
143+
</Box>
144+
</TableCell>
140145
<TableCell align='left'>
141146
<MqStatus color={runStateColor(run.state)} label={run.state} />
142147
</TableCell>

web/src/routes/datasets/Datasets.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
} from '../../helpers/nodes'
2929
import { fetchDatasets, resetDatasets } from '../../store/actionCreators'
3030
import { formatUpdatedAt } from '../../helpers'
31+
import { truncateText } from '../../helpers/text'
3132
import { useTheme } from '@emotion/react'
3233
import Assertions from '../../components/datasets/Assertions'
3334
import Box from '@mui/material/Box'
@@ -203,11 +204,11 @@ const Datasets: React.FC<DatasetsProps> = ({
203204
dataset.name
204205
)}`}
205206
>
206-
{dataset.name}
207+
{truncateText(dataset.name, 40)}
207208
</MqText>
208209
</TableCell>
209210
<TableCell align='left'>
210-
<MqText>{dataset.namespace}</MqText>
211+
<MqText>{truncateText(dataset.namespace, 40)}</MqText>
211212
</TableCell>
212213
<TableCell align='left'>
213214
<MqText>{dataset.sourceName}</MqText>

web/src/routes/events/Events.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { fetchEvents, resetEvents } from '../../store/actionCreators'
2525
import { fileSize, formatUpdatedAt } from '../../helpers'
2626
import { formatDateAPIQuery, formatDatePicker } from '../../helpers/time'
2727
import { saveAs } from 'file-saver'
28+
import { truncateText } from '../../helpers/text'
2829
import { useSearchParams } from 'react-router-dom'
2930
import { useTheme } from '@emotion/react'
3031
import Box from '@mui/material/Box'
@@ -305,9 +306,9 @@ const Events: React.FC<EventsProps> = ({
305306
label={event.eventType}
306307
/>
307308
</TableCell>
308-
<TableCell align='left'>{event.job.name}</TableCell>
309+
<TableCell align='left'>{truncateText(event.job.name, 40)}</TableCell>
309310
<TableCell align='left'>
310-
<MqText> {event.job.namespace} </MqText>
311+
<MqText> {truncateText(event.job.namespace, 40)} </MqText>
311312
</TableCell>
312313
<TableCell align='left'>
313314
<MqText>{formatUpdatedAt(event.eventTime)}</MqText>

web/src/routes/jobs/Jobs.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { encodeNode, runStateColor } from '../../helpers/nodes'
2424
import { fetchJobs, resetJobs } from '../../store/actionCreators'
2525
import { formatUpdatedAt } from '../../helpers'
2626
import { stopWatchDuration } from '../../helpers/time'
27+
import { truncateText } from '../../helpers/text'
2728
import Box from '@mui/material/Box'
2829
import CircularProgress from '@mui/material/CircularProgress/CircularProgress'
2930
import IconButton from '@mui/material/IconButton'
@@ -183,11 +184,11 @@ const Jobs: React.FC<JobsProps> = ({
183184
link
184185
linkTo={`/lineage/${encodeNode('JOB', job.namespace, job.name)}`}
185186
>
186-
{job.name}
187+
{truncateText(job.name, 40)}
187188
</MqText>
188189
</TableCell>
189190
<TableCell align='left'>
190-
<MqText>{job.namespace}</MqText>
191+
<MqText>{truncateText(job.namespace, 40)}</MqText>
191192
</TableCell>
192193
<TableCell align='left'>
193194
<MqText>{formatUpdatedAt(job.updatedAt)}</MqText>

web/src/routes/table-level/ActionBar.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ArrowBackIosRounded, Refresh } from '@mui/icons-material'
22
import { Divider, FormControlLabel, Switch, TextField } from '@mui/material'
33
import { fetchLineage } from '../../store/actionCreators'
44
import { theme } from '../../helpers/theme'
5+
import { truncateText } from '../../helpers/text'
56
import { useNavigate, useParams, useSearchParams } from 'react-router-dom'
67
import Box from '@mui/material/Box'
78
import IconButton from '@mui/material/IconButton'
@@ -68,12 +69,14 @@ export const ActionBar = ({
6869
<Divider orientation='vertical' flexItem sx={{ mx: 2 }} />
6970
<Box>
7071
<MqText subdued>Namespace</MqText>
71-
<MqText font={'mono'}>{namespace || 'Unknown namespace name'}</MqText>
72+
<MqText font={'mono'}>
73+
{namespace ? truncateText(namespace, 40) : 'Unknown namespace name'}
74+
</MqText>
7275
</Box>
7376
<Divider orientation='vertical' flexItem sx={{ mx: 2 }} />
7477
<Box>
7578
<MqText subdued>Name</MqText>
76-
<MqText font={'mono'}>{name || 'Unknown dataset name'}</MqText>
79+
<MqText font={'mono'}>{name ? truncateText(name, 40) : 'Unknown dataset name'}</MqText>
7780
</Box>
7881
</Box>
7982
<Box display={'flex'} alignItems={'center'}>

0 commit comments

Comments
 (0)