Skip to content

chore: drop legacy /superset prefix from remaining hardcoded URLs#42156

Open
sadpandajoe wants to merge 1 commit into
masterfrom
chore/drop-legacy-superset-prefix-remnants
Open

chore: drop legacy /superset prefix from remaining hardcoded URLs#42156
sadpandajoe wants to merge 1 commit into
masterfrom
chore/drop-legacy-superset-prefix-remnants

Conversation

@sadpandajoe

Copy link
Copy Markdown
Member

SUMMARY

Following #39925, which collapsed the historical /superset/ prefix off all
canonical views (Superset.route_base = ""), a few hardcoded URL literals still
emit the old /superset/... form and rely on the closed-set 308 redirect shim
(scheduled for removal at EOL 5.0.0). This points them at the canonical paths
directly so they no longer depend on the shim:

  • getURIDirectory() in the deck.gl and legacy nvd3 chart plugins:
    /superset/explore_json//explore_json/
  • The filter-box → native-filter migration helper's generated markdown link:
    /superset/slice/{id}//slice/{id}/

The migration-helper change only affects future upgrade runs — markdown already
written to previously-migrated dashboards is untouched (and remains shim-covered
until 5.0.0). No new migration is introduced; this only edits shared helper text.
/explore_json/ and /slice/<int>/ are both live routes on master.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A — internal URL construction; no visual change.

TESTING INSTRUCTIONS

  • deck.gl / nvd3: build a chart of the relevant type and confirm data requests go to
    /explore_json/... directly (no /superset/ prefix, no 308 redirect hop).
  • Migration: run the filter-box → native-filter migration on a dashboard containing a
    filter-box chart; confirm the generated markdown links to /slice/<id>/.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Following #39925, which collapsed the historical `/superset/` prefix off
all canonical views, a few hardcoded literals still emit the old form and
rely on the closed-set 308 redirect shim (scheduled for removal at EOL
5.0.0). Point them at the canonical paths directly:

- deck.gl and legacy nvd3 `getURIDirectory()`:
  `/superset/explore_json/` -> `/explore_json/`
- filter-box -> native-filter migration markdown href:
  `/superset/slice/{id}/` -> `/slice/{id}/`

The migration-helper change only affects future upgrade runs; markdown
already written to migrated dashboards is untouched (and still shim-covered
until 5.0.0). No tests pin these literals, and `/explore_json/` and
`/slice/<int>/` are live routes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dosubot dosubot Bot added change:frontend Requires changing the frontend viz:charts:deck.gl Related to deck.gl charts viz:nvd3 labels Jul 18, 2026
@bito-code-review

bito-code-review Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #ca156d

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: b1242ab..b1242ab
    • superset-frontend/plugins/legacy-preset-chart-nvd3/src/vendor/superset/exploreUtils.ts
    • superset-frontend/plugins/preset-chart-deckgl/src/utils/explore.ts
    • superset/migrations/shared/native_filters.py
  • Files skipped - 0
  • Tools
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Eslint (Linter) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added risk:db-migration PRs that require a DB migration plugins labels Jul 18, 2026
@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit b1242ab
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a5ae00f1744b400092eb676
😎 Deploy Preview https://deploy-preview-42156--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Jul 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 64.94%. Comparing base (c6da740) to head (b1242ab).
⚠️ Report is 66 commits behind head on master.

Files with missing lines Patch % Lines
...set-chart-nvd3/src/vendor/superset/exploreUtils.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #42156      +/-   ##
==========================================
+ Coverage   64.49%   64.94%   +0.44%     
==========================================
  Files        2747     2756       +9     
  Lines      153977   155047    +1070     
  Branches    35318    35476     +158     
==========================================
+ Hits        99315   100689    +1374     
+ Misses      52751    52443     -308     
- Partials     1911     1915       +4     
Flag Coverage Δ
hive 38.94% <ø> (-0.09%) ⬇️
javascript 70.50% <50.00%> (-0.01%) ⬇️
mysql 57.62% <ø> (-0.22%) ⬇️
postgres 57.68% <ø> (-0.22%) ⬇️
presto 40.90% <ø> (-0.12%) ⬇️
python 59.10% <ø> (+0.99%) ⬆️
sqlite 57.30% <ø> (-0.22%) ⬇️
unit 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sadpandajoe
sadpandajoe requested a review from rusackas July 19, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:frontend Requires changing the frontend plugins risk:db-migration PRs that require a DB migration size/XS viz:charts:deck.gl Related to deck.gl charts viz:nvd3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant