Skip to content
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

feat: lineage refactor #1212

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

feat: lineage refactor #1212

wants to merge 36 commits into from

Conversation

saravmajestic
Copy link
Collaborator

@saravmajestic saravmajestic commented Jun 13, 2024

Overview

Problem

Extract lineage component for better maintainability

Solution

  • Created separate components for lineage

Screenshot/Demo

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

How to test

  • enable feature flag: dbt.enableLineageV2 as true in settings.json
  • verify lineage panel, sql visualizer
  • all functionalities should as existing

Checklist

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

@saravmajestic saravmajestic self-assigned this Jun 13, 2024
@@ -173,14 +173,6 @@ export class LineagePanel implements WebviewViewProvider, Disposable {
return;
}

if (command === "openURL") {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is handled via altimateWebviewProvider

window.addEventListener(
"message",
(
event: MessageEvent<{ command: string; args: Record<string, unknown> }>,

Check warning

Code scanning / CodeQL

Missing origin verification in `postMessage` handler Medium

Postmessage handler has no origin check.
event: MessageEvent<{ command: string; args: Record<string, unknown> }>,
) => {
if (!event.origin.startsWith("vscode-webview://")) {
panelLogger.debug("invalid message ", event);

Check warning

Code scanning / CodeQL

Log injection Medium

Log entry depends on a
user-provided value
.
@@ -188,17 +188,6 @@ export class QueryResultPanel extends AltimateWebviewProvider {
);
}

private async checkIfWebviewReady() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved to altimateWebviewProvider

@saravmajestic saravmajestic marked this pull request as ready for review July 9, 2024 07:55
@saravmajestic saravmajestic changed the title feat: lineage v2 feat: lineage refactor Jul 9, 2024
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.

None yet

3 participants