You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "rusackas (via GitHub)" <gi...@apache.org> on 2026/06/15 19:20:21 UTC
[PR] chore(sqllab): remove dead TableElement component and syncTable action [superset]
rusackas opened a new pull request, #41071:
URL: https://github.com/apache/superset/pull/41071
### SUMMARY
The SQL Lab left panel was rewritten from the flat `TableElement` schema list to the `TableExploreTree` (react-arborist) tree. `TableElement` was unplugged from `SqlEditorLeftBar` during that migration, but its files were never removed — it survives in the repo referenced only by its own test, so it compiles, its test stays green, and dead-code tooling treats the self-import as a real reference. Nothing in the app renders it.
This removes that orphaned component and the redux surface that died with it:
- **`SqlLab/components/TableElement/`** (component + test) — only referenced by itself; the live left bar renders `<TableExploreTree>` unconditionally (no feature-flag fallback).
- **`syncTable` thunk** in `actions/sqlLab.ts` — its only consumer was `TableElement`. The new tree refreshes schema via `fetchAndStoreTableSchema` (`useTreeData`), not `syncTable`.
- **The `TableMetaData` interface local to `actions/sqlLab.ts`** — used only by `syncTable`. (Unrelated: a separate `TableMetaData` in `hooks/apiResources` is the live type imported everywhere else — that one is untouched.)
- The `describe('syncTable')` block in `actions/sqlLab.test.ts`.
**Deliberately kept** because they're still used by the new tree / table preview:
- `ColumnElement` (used by `TableExploreTree/TreeNodeRenderer`, `types.ts`, `fixtures.ts`)
- `ShowSQL` (used by `TablePreview`)
- `mergeTable` / `MERGE_TABLE` and its reducer (used by `addTable` and other live flows)
Context: surfaced while triaging #38839, which fixed a refresh bug in `TableElement` — a fix that can no longer reach users because the component is dead. Closing that PR alongside this cleanup.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A — pure dead-code removal, no user-facing change.
### TESTING INSTRUCTIONS
- `cd superset-frontend && npm run type` — no new errors.
- `npx jest src/SqlLab/actions/sqlLab.test.ts src/SqlLab/reducers/sqlLab.test.ts src/SqlLab/components/SqlEditorLeftBar` — green.
- Manually: open SQL Lab, pick a database/schema/table — the table tree and schema refresh still work (they run through `TableExploreTree`, untouched here).
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
- [ ] Introduces new feature or API
- [x] Removes existing feature or API
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] chore(sqllab): remove dead TableElement component and syncTable action [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas merged PR #41071:
URL: https://github.com/apache/superset/pull/41071
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] chore(sqllab): remove dead TableElement component and syncTable action [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #41071:
URL: https://github.com/apache/superset/pull/41071#issuecomment-4711541188
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] chore(sqllab): remove dead TableElement component and syncTable action [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #41071:
URL: https://github.com/apache/superset/pull/41071#issuecomment-4711653094
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/41071?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 64.25%. Comparing base ([`4b96b91`](https://app.codecov.io/gh/apache/superset/commit/4b96b91b53631188afb31e055783c8acfffa3481?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`1d136bc`](https://app.codecov.io/gh/apache/superset/commit/1d136bc0007378f861bd61e787d486b26cf59b28?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 1 commits behind head on master.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #41071 +/- ##
==========================================
- Coverage 64.28% 64.25% -0.03%
==========================================
Files 2660 2659 -1
Lines 144716 144607 -109
Branches 33373 33341 -32
==========================================
- Hits 93027 92919 -108
+ Misses 50043 50042 -1
Partials 1646 1646
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/41071/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [javascript](https://app.codecov.io/gh/apache/superset/pull/41071/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `68.28% <ø> (-0.05%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/41071?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org