-
Notifications
You must be signed in to change notification settings - Fork 108
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
chore: remove unused legacy code (lineage and query panel) #1608
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request updates several configuration files while removing legacy lineage features. The GitHub Actions workflow and test configurations have been reformatted and streamlined. The Changes
Suggested reviewers
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (3)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Generated with ❤️ by ellipsis.dev |
There was a problem hiding this 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 (4)
webview_panels/package.json (1)
14-14
: Parallel Build Script Updated
The updated"build"
script on line 14 now leveragesconcurrently
to run both renderer and main builds simultaneously, which should help improve build performance. Please verify that the command options (e.g. disabling the empty out directory for the renderer build) are intended and work as expected across environments..github/actions/common-build/action.yml (1)
16-20
: Review of NPM CI Steps
There are two separatenpm ci
steps: one for the project root and one scoped to./webview_panels
. Since the PR objective includes removing legacy build steps (for example, the redundantnpm ci
for the legacynew_lineage_panel
), please double-check that both of these steps are still necessary. Consolidating or clarifying their purpose might be beneficial for build performance and clarity..github/workflows/tests.yml (2)
17-24
: Outdated Actions Versions – Checkout and Setup-Node
Static analysis recommends updating the versions of actions used here. For example, updatingactions/checkout@v3
andactions/setup-node@v3
to more recent versions (e.g.actions/[email protected]
andactions/setup-node@v4
) may address potential issues and leverage improvements by GitHub.The following diff is a suggestion for the
setup-node
update:- - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4Consider a similar update for
actions/checkout
.🧰 Tools
🪛 actionlint (1.7.4)
17-17: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
20-20: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
64-66
: Outdated Codecov Action Version
The static analysis also flags thecodecov/codecov-action@v3
as outdated. Updating to a newer major version (such as@v4
if available) could resolve potential compatibility or performance issues.A possible diff might be:
- uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4🧰 Tools
🪛 actionlint (1.7.4)
65-65: the runner of "codecov/codecov-action@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (76)
new_lineage_panel/package-lock.json
is excluded by!**/package-lock.json
new_lineage_panel/src/assets/icons/alert-circle.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/alert-error.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/analysis.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/arrow-left-double.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/arrow-left.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/arrow-right-double.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/arrow-right.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/boolean.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/chevron-down.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/chevron-up.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/code.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/datetime.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_cte_dark.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_cte_light.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_exposure_dark.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_exposure_light.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_metrics_dark.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_metrics_light.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_model_dark.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_model_light.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_seed_dark.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_seed_light.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_snapshot_dark.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_snapshot_light.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_source_dark.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/dbt_node_source_light.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/edit.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/ephemeral.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/expand-lineage.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/expand.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/exposure.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/external-project.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/feedback.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/gear.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/geospatial.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/help.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/macros.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/metrics.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/model.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/number.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/object.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/play-circle.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/preview.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/processing_screen.gif
is excluded by!**/*.gif
new_lineage_panel/src/assets/icons/reset.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/robot1.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/rotate.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/seed.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/snapshot.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/source.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_filter.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_group_by.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_inner_join.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_left_join.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_limit.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_order_by.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_outer_join.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_right_join.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_select.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/sql_union.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/tests.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/text.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/thumbsdown-selected.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/thumbsdown.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/thumbsup-selected.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/thumbsup.svg
is excluded by!**/*.svg
new_lineage_panel/src/assets/icons/x-close.svg
is excluded by!**/*.svg
query_panel/assets/copy-regular.svg
is excluded by!**/*.svg
query_panel/assets/perspective.cpp.wasm
is excluded by!**/*.wasm
query_panel/assets/perspective_bg.wasm
is excluded by!**/*.wasm
query_panel/assets/preview.svg
is excluded by!**/*.svg
query_panel/assets/spinner.gif
is excluded by!**/*.gif
query_panel/assets/tabulator.min.js
is excluded by!**/*.min.js
query_panel/assets/toolkit.min.js
is excluded by!**/*.min.js
📒 Files selected for processing (65)
.github/actions/common-build/action.yml
(1 hunks).github/workflows/tests.yml
(2 hunks).vscodeignore
(0 hunks)new_lineage_panel/.eslintrc.cjs
(0 hunks)new_lineage_panel/.gitignore
(0 hunks)new_lineage_panel/index.html
(0 hunks)new_lineage_panel/package.json
(0 hunks)new_lineage_panel/src/ActionWidget.tsx
(0 hunks)new_lineage_panel/src/CustomNodes.tsx
(0 hunks)new_lineage_panel/src/Demo.tsx
(0 hunks)new_lineage_panel/src/ExposureDetails.tsx
(0 hunks)new_lineage_panel/src/Feedback.tsx
(0 hunks)new_lineage_panel/src/Help.tsx
(0 hunks)new_lineage_panel/src/Lineage.tsx
(0 hunks)new_lineage_panel/src/Modals.tsx
(0 hunks)new_lineage_panel/src/MoreTables.tsx
(0 hunks)new_lineage_panel/src/Settings.tsx
(0 hunks)new_lineage_panel/src/StaticLineage.tsx
(0 hunks)new_lineage_panel/src/TableDetails.tsx
(0 hunks)new_lineage_panel/src/assets/animation/Loader.json
(0 hunks)new_lineage_panel/src/components/Chip.tsx
(0 hunks)new_lineage_panel/src/components/CodeBlock.tsx
(0 hunks)new_lineage_panel/src/components/Column.tsx
(0 hunks)new_lineage_panel/src/components/ColumnRow.tsx
(0 hunks)new_lineage_panel/src/components/Form.tsx
(0 hunks)new_lineage_panel/src/components/InfoIcon.tsx
(0 hunks)new_lineage_panel/src/components/LineageLegend.tsx
(0 hunks)new_lineage_panel/src/components/Loader/index.tsx
(0 hunks)new_lineage_panel/src/components/Loader/styles.module.scss
(0 hunks)new_lineage_panel/src/components/Modal/BetterPopover.tsx
(0 hunks)new_lineage_panel/src/components/Modal/PageModal.css
(0 hunks)new_lineage_panel/src/components/Modal/PageModal.tsx
(0 hunks)new_lineage_panel/src/components/Modal/SidebarModal.css
(0 hunks)new_lineage_panel/src/components/Modal/SidebarModal.tsx
(0 hunks)new_lineage_panel/src/components/Modal/index.ts
(0 hunks)new_lineage_panel/src/components/Modal/styles.module.scss
(0 hunks)new_lineage_panel/src/components/Purpose.tsx
(0 hunks)new_lineage_panel/src/components/Tags/index.tsx
(0 hunks)new_lineage_panel/src/components/Tags/styles.module.scss
(0 hunks)new_lineage_panel/src/components/Tooltip.tsx
(0 hunks)new_lineage_panel/src/components/index.ts
(0 hunks)new_lineage_panel/src/components/styles.module.scss
(0 hunks)new_lineage_panel/src/constants.ts
(0 hunks)new_lineage_panel/src/graph.ts
(0 hunks)new_lineage_panel/src/index.css
(0 hunks)new_lineage_panel/src/main.tsx
(0 hunks)new_lineage_panel/src/service.ts
(0 hunks)new_lineage_panel/src/service_utils.ts
(0 hunks)new_lineage_panel/src/styles.module.scss
(0 hunks)new_lineage_panel/src/utils.ts
(0 hunks)new_lineage_panel/src/vite-env.d.ts
(0 hunks)new_lineage_panel/tsconfig.json
(0 hunks)new_lineage_panel/tsconfig.node.json
(0 hunks)new_lineage_panel/vite.config.ts
(0 hunks)package.json
(2 hunks)query_panel/assets/perspective.js
(0 hunks)query_panel/assets/prism-dark.css
(0 hunks)query_panel/assets/prism-light.css
(0 hunks)query_panel/assets/prism.js
(0 hunks)query_panel/assets/tabulator.min.css
(0 hunks)query_panel/index.html
(0 hunks)query_panel/main.js
(0 hunks)query_panel/style.css
(0 hunks)tsconfig.json
(1 hunks)webview_panels/package.json
(1 hunks)
💤 Files with no reviewable changes (60)
- new_lineage_panel/src/components/Chip.tsx
- new_lineage_panel/src/components/Tooltip.tsx
- new_lineage_panel/src/components/Modal/index.ts
- new_lineage_panel/src/components/Modal/styles.module.scss
- new_lineage_panel/src/components/Modal/SidebarModal.css
- new_lineage_panel/src/vite-env.d.ts
- new_lineage_panel/src/components/Tags/index.tsx
- query_panel/assets/prism-light.css
- new_lineage_panel/.gitignore
- new_lineage_panel/src/components/Loader/index.tsx
- new_lineage_panel/src/Settings.tsx
- new_lineage_panel/tsconfig.node.json
- query_panel/assets/perspective.js
- new_lineage_panel/src/components/ColumnRow.tsx
- new_lineage_panel/src/Demo.tsx
- new_lineage_panel/package.json
- new_lineage_panel/src/components/Purpose.tsx
- new_lineage_panel/src/components/Loader/styles.module.scss
- new_lineage_panel/src/main.tsx
- new_lineage_panel/src/assets/animation/Loader.json
- .vscodeignore
- new_lineage_panel/vite.config.ts
- new_lineage_panel/src/components/LineageLegend.tsx
- query_panel/style.css
- query_panel/index.html
- new_lineage_panel/src/components/CodeBlock.tsx
- new_lineage_panel/src/components/Modal/PageModal.css
- query_panel/main.js
- new_lineage_panel/src/components/InfoIcon.tsx
- new_lineage_panel/src/components/Form.tsx
- new_lineage_panel/src/Feedback.tsx
- new_lineage_panel/src/Help.tsx
- new_lineage_panel/src/components/Modal/SidebarModal.tsx
- new_lineage_panel/src/Lineage.tsx
- new_lineage_panel/index.html
- query_panel/assets/prism-dark.css
- new_lineage_panel/.eslintrc.cjs
- new_lineage_panel/src/ExposureDetails.tsx
- new_lineage_panel/src/index.css
- new_lineage_panel/tsconfig.json
- new_lineage_panel/src/components/Tags/styles.module.scss
- new_lineage_panel/src/components/Modal/PageModal.tsx
- new_lineage_panel/src/StaticLineage.tsx
- new_lineage_panel/src/graph.ts
- new_lineage_panel/src/components/Column.tsx
- new_lineage_panel/src/components/index.ts
- new_lineage_panel/src/constants.ts
- new_lineage_panel/src/styles.module.scss
- query_panel/assets/tabulator.min.css
- new_lineage_panel/src/ActionWidget.tsx
- query_panel/assets/prism.js
- new_lineage_panel/src/MoreTables.tsx
- new_lineage_panel/src/Modals.tsx
- new_lineage_panel/src/CustomNodes.tsx
- new_lineage_panel/src/service_utils.ts
- new_lineage_panel/src/components/styles.module.scss
- new_lineage_panel/src/components/Modal/BetterPopover.tsx
- new_lineage_panel/src/service.ts
- new_lineage_panel/src/TableDetails.tsx
- new_lineage_panel/src/utils.ts
🧰 Additional context used
🪛 actionlint (1.7.4)
.github/workflows/tests.yml
17-17: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
20-20: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
65-65: the runner of "codecov/codecov-action@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🔇 Additional comments (5)
package.json (3)
1292-1295
: Streamlined Prepublish Script
The updated"vscode:prepublish"
script now omits the legacypanel:lineage
command, aligning with the PR’s objectives of removing unused legacy code. This simplification should reduce build overhead and potential confusion.
1295-1297
: Simplified Webpack Development Script
The"webpack-dev"
script has been modified to remove legacy commands (such as references to lineage panels) and now focuses solely on building webviews, which meets the new streamlined build process.
1304-1306
: Updated Panels Installation Command
The"install:panels"
script now installs only thewebview_panels
, ensuring that deprecated directories such asnew_lineage_panel
are no longer included. This is in line with the removal of legacy code.tsconfig.json (1)
25-26
: Updated Exclusion List in TypeScript Configuration
The removal of"new_lineage_panel"
from the"exclude"
array is correct given that legacy code is being removed. Just verify that including"webview_panels"
in the exclusion list is intentional, as it might be compiled separately..github/actions/common-build/action.yml (1)
11-13
: Cache Configuration Updated to Use Double Quotes
Changing thecache
parameter from single quotes to double quotes (line 12) improves consistency. The cache-dependency paths now correctly includepackage-lock.json
andwebview_panels/package-lock.json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Overview
Problem
new_lineage_panel
andquery_panel
webviews are deprecated and code is not used anymore.current
webview_panels
build is slow because of 2 buildsSolution
Deleted directory
new_lineage_panel
,query_panel
and its referencesRun both builds in
webview_panels
in parallelScreenshot/Demo
A picture is worth a thousand words. Please highlight the changes if applicable.
How to test
Checklist
README.md
updated and added information about my changeSummary by CodeRabbit
These improvements help maintain stability and performance by eliminating legacy code and ensuring a more efficient development workflow.