Skip to content

chore: remove legacy lineage panel #1684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdesmet
Copy link
Contributor

@mdesmet mdesmet commented Jun 8, 2025

Overview

Problem

Fixes #1682

Solution

Describe the implemented solution. Add external references if needed.

Screenshot/Demo

A picture is worth a thousand words. Please highlight the changes if applicable.

How to test

  • Steps to be followed to verify the solution or code changes
  • Mention if there is any settings configuration added/changed/deleted

Checklist

  • I have run this code and it appears to resolve the stated issue
  • README.md updated and added information about my change

Important

Remove legacy lineage panel and related configurations, defaulting to the new lineage panel.

  • Removal:
    • Delete lineage_panel/index.html, lineage_panel/main.js, and lineage_panel/style.css.
    • Remove dbt.enableNewLineagePanel setting from package.json.
  • Code Changes:
    • In lineagePanel.ts, remove references to ModelGraphViewPanel and legacy panel logic.
    • In ActionWidget.tsx, remove button for showing legacy UX.
  • Behavior:
    • Default to new lineage panel in LineagePanel class.
    • Remove toggle logic for switching between new and legacy panels.

This description was created by Ellipsis for d833b2a. You can customize this summary. It will automatically update as commits are pushed.

Summary by CodeRabbit

  • New Features
    • The new lineage panel is now always used, with no option to switch to the legacy view.
  • Chores
    • Removed all files and code related to the legacy lineage panel, including configuration flags and UI elements for toggling views.
  • Style
    • Deleted unused styles associated with the legacy lineage panel.

Copy link
Contributor

coderabbitai bot commented Jun 8, 2025

Walkthrough

This change removes all code, assets, and configuration related to the legacy lineage panel. The project now exclusively uses the new lineage panel, eliminating the toggle and associated settings. All references to the legacy implementation, including UI elements and configuration flags, have been deleted from both backend and frontend components.

Changes

File(s) Change Summary
lineage_panel/index.html, lineage_panel/main.js, lineage_panel/style.css Deleted all static files related to the legacy lineage panel, including HTML, JS, and CSS.
package.json Removed the dbt.enableNewLineagePanel configuration property.
src/webview_provider/lineagePanel.ts Eliminated all logic, commands, and parameters for toggling or supporting the legacy lineage panel.
webview_panels/src/modules/lineage/ActionWidget.tsx Removed UI and logic for switching to the legacy lineage view.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant VSCode Extension
    participant NewLineagePanel

    User->>VSCode Extension: Opens Lineage Panel
    VSCode Extension->>NewLineagePanel: Initialize and display panel
    NewLineagePanel-->>VSCode Extension: Interact (messages, telemetry)
    Note over VSCode Extension,NewLineagePanel: Legacy panel is no longer referenced or invoked
Loading

Assessment against linked issues

Objective Addressed Explanation
Make the enableNewLineagePanel the default and deprecate legacy panel (#1682)

Possibly related PRs

Suggested reviewers

  • saravmajestic

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error https://github.com/npm/cli/issues
npm error A complete log of this run can be found in: /.npm/_logs/2025-06-08T09_03_23_365Z-debug-0.log

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to d833b2a in 40 seconds. Click for details.
  • Reviewed 346 lines of code in 6 files
  • Skipped 1 files when reviewing.
  • Skipped posting 2 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/webview_provider/lineagePanel.ts:147
  • Draft comment:
    The telemetry event for React errors uses ambiguous operator precedence. Currently it does "ReactError:" + typeMapper[type] || "Unknown" which always concatenates the string, even if typeMapper[type] is undefined. Consider rewriting as "ReactError:" + (typeMapper[type] || "Unknown") to ensure the fallback is applied.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. src/webview_provider/lineagePanel.ts:86
  • Draft comment:
    For better maintainability and refactoring, please add explicit return type annotations to utility functions such as the 'init' arrow function and 'handleWebviewMessage'.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50% None

Workflow ID: wflow_yzC58dm9aYRzyfJk

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
src/webview_provider/lineagePanel.ts (3)

41-44: Refactor for clarity: rename injected panel instance

The constructor now exclusively injects NewLineagePanel under the generic name lineagePanel. Renaming this parameter/property to newLineagePanel would improve readability and clearly distinguish it from the provider class itself.

-export class LineagePanel implements WebviewViewProvider, Disposable {
-  public constructor(
-    private lineagePanel: NewLineagePanel,
+export class LineagePanel implements WebviewViewProvider, Disposable {
+  public constructor(
+    private newLineagePanel: NewLineagePanel,
     private dbtProjectContainer: DBTProjectContainer,
     private telemetry: TelemetryService,
     private dbtTerminal: DBTTerminal,
  ) {
     // ...

63-65: Remove redundant indirection: inline getPanel()

Since getPanel() simply returns the single NewLineagePanel instance, consider inlining its calls or removing this helper altogether to reduce indirection. If you keep it, rename to getNewPanel() for clarity.


107-109: Extract telemetry event name into a constant

Hard-coding "NewLineagePanelActive" increases risk of typos and divergence. Define this event string as a shared constant or enum in TelemetryService or a dedicated EventNames module, then reference it here:

-      this.telemetry.sendTelemetryEvent("NewLineagePanelActive");
+      this.telemetry.sendTelemetryEvent(EventNames.NewLineagePanelActive);
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 449c9b2 and d833b2a.

⛔ Files ignored due to path filters (1)
  • lineage_panel/assets/g6.min.js is excluded by !**/*.min.js
📒 Files selected for processing (6)
  • lineage_panel/index.html (0 hunks)
  • lineage_panel/main.js (0 hunks)
  • lineage_panel/style.css (0 hunks)
  • package.json (0 hunks)
  • src/webview_provider/lineagePanel.ts (3 hunks)
  • webview_panels/src/modules/lineage/ActionWidget.tsx (0 hunks)
💤 Files with no reviewable changes (5)
  • package.json
  • webview_panels/src/modules/lineage/ActionWidget.tsx
  • lineage_panel/style.css
  • lineage_panel/index.html
  • lineage_panel/main.js
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: test (windows-latest)
  • GitHub Check: build (windows-latest)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: test (ubuntu-latest)
  • GitHub Check: test (macos-latest)

Copy link

@mateuszbroja mateuszbroja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't do it. Currently dbt lineage is not showing the batch incremental models (databricks adapter), but they are available in the legacy version.

@mdesmet
Copy link
Contributor Author

mdesmet commented Jun 13, 2025

@mateuszbroja : CAn you show some screenshots?

@mdesmet
Copy link
Contributor Author

mdesmet commented Jun 15, 2025

@mateuszbroja : all nodes should be displayed in both panels. If there is a bug in the new lineage panel we should resolve it there. We are planning to remove the legacy panel soon. Please create a ticket and we will resolve the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the enableNewLineagePanel the default
2 participants