chore: drop legacy /superset prefix from remaining hardcoded URLs#42156
chore: drop legacy /superset prefix from remaining hardcoded URLs#42156sadpandajoe wants to merge 1 commit into
Conversation
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>
Code Review Agent Run #ca156dActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
SUMMARY
Following #39925, which collapsed the historical
/superset/prefix off allcanonical views (
Superset.route_base = ""), a few hardcoded URL literals stillemit 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//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
/explore_json/...directly (no/superset/prefix, no 308 redirect hop).filter-box chart; confirm the generated markdown links to
/slice/<id>/.ADDITIONAL INFORMATION