Skip to content

Commit

Permalink
fix: direction
Browse files Browse the repository at this point in the history
  • Loading branch information
AdiGajbhiye committed Nov 21, 2024
1 parent b944892 commit cc9f90a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/webview_provider/docsEditPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ export class DocsEditViewPanel implements WebviewViewProvider {
const _tables = targets
.map(
(t) =>
this.dbtLineageService.getDownstreamTables({ table: t[0] })
this.dbtLineageService.getUpstreamTables({ table: t[0] })
?.tables,
)
.filter((t) => Boolean(t))
Expand All @@ -708,7 +708,7 @@ export class DocsEditViewPanel implements WebviewViewProvider {
targets,
currAnd1HopTables,
selectedColumn,
upstreamExpansion: false,
upstreamExpansion: true,
showIndirectEdges: false,
eventType: "documentation_propagation",
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ export const DocumentationPropagationButton = ({
if (item.viewsType === "Transformation") continue;
if (
iCurrColumns.find(
(c) => c.model === item.target[0] && c.column === item.target[1],
(c) => c.model === item.source[0] && c.column === item.source[1],
)
) {
newColumns.push({
model: item.source[0],
column: item.source[1],
model: item.target[0],
column: item.target[1],
description:
result.tables.find((t) => t.table === item.source[0])?.columns[
item.source[1]
result.tables.find((t) => t.table === item.target[0])?.columns[
item.target[1]
]?.description ?? "",
});
}
Expand Down

0 comments on commit cc9f90a

Please sign in to comment.