Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95,010 changes: 0 additions & 95,010 deletions lineage_panel/assets/g6.min.js

This file was deleted.

27 changes: 0 additions & 27 deletions lineage_panel/index.html

This file was deleted.

128 changes: 0 additions & 128 deletions lineage_panel/main.js

This file was deleted.

32 changes: 0 additions & 32 deletions lineage_panel/style.css

This file was deleted.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@
"displayName": "MCP Server SSL Certificate Path",
"default": ""
},
"dbt.enableNewLineagePanel": {
"type": "boolean",
"description": "Enable the new lineage panel in dbt."
},
"dbt.enableCollaboration": {
"type": "boolean",
"description": "Enable dbt docs collaboration.",
Expand Down
12 changes: 0 additions & 12 deletions src/inversify.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ import { DbtDocsView } from "./webview_provider/DbtDocsView";
import { DocsEditViewPanel } from "./webview_provider/docsEditPanel";
import { InsightsPanel } from "./webview_provider/insightsPanel";
import { LineagePanel } from "./webview_provider/lineagePanel";
import { ModelGraphViewPanel } from "./webview_provider/modelGraphViewPanel";
import { NewDocsGenPanel } from "./webview_provider/newDocsGenPanel";
import { NewLineagePanel } from "./webview_provider/newLineagePanel";
import { QueryResultPanel } from "./webview_provider/queryResultPanel";
Expand Down Expand Up @@ -1532,7 +1531,6 @@ container
.toDynamicValue((context) => {
return new LineagePanel(
context.container.get(NewLineagePanel),
context.container.get(ModelGraphViewPanel),
context.container.get(DBTProjectContainer),
context.container.get(TelemetryService),
context.container.get("DBTTerminal"),
Expand Down Expand Up @@ -1617,16 +1615,6 @@ container
})
.inSingletonScope();

container
.bind(ModelGraphViewPanel)
.toDynamicValue((context) => {
return new ModelGraphViewPanel(
context.container.get(DBTProjectContainer),
context.container.get("DBTTerminal"),
);
})
.inSingletonScope();

// Bind WebviewViewProviders
container
.bind(WebviewViewProviders)
Expand Down
38 changes: 3 additions & 35 deletions src/webview_provider/lineagePanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ import {
WebviewViewProvider,
WebviewViewResolveContext,
window,
workspace,
} from "vscode";
import { DBTProjectContainer } from "../dbt_client/dbtProjectContainer";
import {
ManifestCacheChangedEvent,
ManifestCacheProjectAddedEvent,
} from "../dbt_client/event/manifestCacheChangedEvent";
import { TelemetryService } from "../telemetry";
import { ModelGraphViewPanel } from "./modelGraphViewPanel";
import { NewLineagePanel } from "./newLineagePanel";

export interface LineagePanelView extends WebviewViewProvider {
Expand All @@ -40,8 +38,7 @@ export class LineagePanel implements WebviewViewProvider, Disposable {

public constructor(
private lineagePanel: NewLineagePanel,
private legacyLineagePanel: ModelGraphViewPanel,
dbtProjectContainer: DBTProjectContainer,
private dbtProjectContainer: DBTProjectContainer,
private telemetry: TelemetryService,
@inject("DBTTerminal")
private dbtTerminal: DBTTerminal,
Expand All @@ -64,12 +61,7 @@ export class LineagePanel implements WebviewViewProvider, Disposable {
}

private getPanel() {
const isEnableNewLineagePanel = workspace
.getConfiguration("dbt")
.get<boolean>("enableNewLineagePanel", false);
return isEnableNewLineagePanel
? this.lineagePanel
: this.legacyLineagePanel;
return this.lineagePanel;
}

private onManifestCacheChanged(event: ManifestCacheChangedEvent): void {
Expand Down Expand Up @@ -108,18 +100,12 @@ export class LineagePanel implements WebviewViewProvider, Disposable {
this.panel = panel;
this.context = context;
this.token = token;
const panelType = workspace
.getConfiguration("dbt")
.get<boolean>("enableNewLineagePanel", false);

this.init();
panel.webview.onDidReceiveMessage(this.handleWebviewMessage, null, []);
const sendLineageViewEvent = () => {
if (this.panel!.visible) {
// keeping the legacy event name same for analysis
this.telemetry.sendTelemetryEvent(
panelType ? "NewLineagePanelActive" : "LineagePanelActive",
);
this.telemetry.sendTelemetryEvent("NewLineagePanelActive");
}
};
sendLineageViewEvent();
Expand Down Expand Up @@ -149,24 +135,6 @@ export class LineagePanel implements WebviewViewProvider, Disposable {
return;
}

if (command === "setNewLineageView") {
await workspace
.getConfiguration("dbt")
.update("enableNewLineagePanel", true);
this.init();
this.telemetry.sendTelemetryEvent("NewLineagePanelSelected");
return;
}

if (command === "setLegacyLineageView") {
await workspace
.getConfiguration("dbt")
.update("enableNewLineagePanel", false);
this.init();
this.telemetry.sendTelemetryEvent("LegacyLineagePanelSelected");
return;
}

if (command === "init") {
this.getPanel()?.init();
return;
Expand Down
Loading
Loading