Skip to content

Commit 51a28c6

Browse files
committed
cleaning up lineage
[ci skip]
1 parent e37187d commit 51a28c6

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

vscode/extension/src/webviews/lineagePanel.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ import {
7676
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; frame-src ${externalAuthority}; connect-src ${externalAuthority}; img-src ${externalAuthority} data:; script-src 'unsafe-inline' ${externalAuthority}; style-src 'unsafe-inline' ${externalAuthority};">
7777
</head>
7878
<body>
79-
<div>${isProd ? "Production" : "Development"}</div>
80-
<div>${externalUrl}</div>
8179
<iframe src="${externalUrl}" style="width:100%; height:100vh;" frameborder="0" allow="clipboard-read; clipboard-write"></iframe>
8280
</body>
8381
</html> `

vscode/react/src/components/graph/ModelLineage.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import ReactFlow, {
1919
} from 'reactflow'
2020
import Loading from '@/components/loading/Loading'
2121
import Spinner from '@/components/logo/Spinner'
22-
import { createLineageWorker } from '@/workers'
22+
import { createLineageWorker } from '@/workers/index'
2323
import { isArrayEmpty, isFalse, isNil, isNotNil } from '@/utils/index'
2424
import ListboxShow from '@/components/listbox/ListboxShow'
2525
import clsx from 'clsx'
@@ -62,8 +62,18 @@ export function ModelLineage({
6262
setUnknownModels,
6363
models,
6464
unknownModels,
65+
setWithSecondary,
66+
setWithConnected,
67+
setWithImpacted,
6568
} = useLineageFlow()
6669

70+
useEffect(() => {
71+
setWithColumns(true)
72+
setWithSecondary(true)
73+
setWithConnected(true)
74+
setWithImpacted(true)
75+
}, [setWithSecondary])
76+
6777
const {
6878
refetch: getModelLineage,
6979
isFetching: isFetchingModelLineage,
@@ -415,6 +425,13 @@ function GraphControls({ nodes = [] }: { nodes: Node[] }): JSX.Element {
415425
setHasBackground,
416426
} = useLineageFlow()
417427

428+
useEffect(() => {
429+
setWithColumns(true)
430+
setWithSecondary(true)
431+
setWithConnected(true)
432+
setWithImpacted(true)
433+
}, [setWithSecondary])
434+
418435
const lineageInfoTrigger = useRef<HTMLButtonElement>(null)
419436

420437
const highlightedNodeModels = useMemo(

vscode/react/src/routes/lineage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export function LineageComponentFromWeb({
9292
handleClickModel={handleClickModel}
9393
handleError={handleError}
9494
models={models}
95+
showControls={false}
9596
>
9697
<ModelLineage model={model} />
9798
</LineageFlowProvider>

0 commit comments

Comments
 (0)