Skip to content

fix: Broken menu links to datasets and sql lab - #33114

Merged
kgabryje merged 1 commit into
apache:masterfrom
kgabryje:fix/broken-menu-links
Apr 13, 2025
Merged

kgabryje merged 1 commit into
apache:masterfrom
kgabryje:fix/broken-menu-links

Conversation

@kgabryje

@kgabryje kgabryje commented Apr 13, 2025 •

Copy link
Copy Markdown
Member

SUMMARY

A change in #30134 caused some links in the menu to be broken when the superset_app_root was not set. This PR fixes it by ensuring that there is no trailing slash in the app_root URL

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

  1. Start Superset normally
  2. Ensure that the links to Datasets and SQL Lab in the menu work correctly
  3. Start Superset with a prefixed URL (FLASK_APP="superset.app:create_app(superset_app_root='/test')" flask run)
  4. Ensure that the links to Datasets and SQL Lab in the menu work correctly

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

@korbit-ai korbit-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I've completed my review and didn't find any issues.

Files scanned ​
File Path Reviewed
superset/initialization/init.py ✅

Explore our documentation to understand the languages and file types we support and the files we ignore.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • On any given comment that Korbit raises on your pull request, you can have a discussion with Korbit by replying to the comment.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Current Korbit Configuration

General Settings ​
Setting Value
Review Schedule Automatic excluding drafts
Max Issue Count 10
Automatic PR Descriptions ❌
Issue Categories ​
Category Enabled
Documentation ✅
Logging ✅
Error Handling ✅
Readability ✅
Design ✅
Performance ✅
Security ✅
Functionality ✅

Feedback and Support

Note

Korbit Pro is free for open source projects 🎉

Looking to add Korbit to your team? Get started with a free 2 week trial here

@codecov

codecov Bot commented Apr 13, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.25%. Comparing base (76d897e) to head (bbe8f38).
Report is 1753 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #33114       +/-   ##
===========================================
+ Coverage   60.48%   83.25%   +22.76%     
===========================================
  Files        1931      552     -1379     
  Lines       76236    39868    -36368     
  Branches     8568        0     -8568     
===========================================
- Hits        46114    33193    -12921     
+ Misses      28017     6675    -21342     
+ Partials     2105        0     -2105     
Flag Coverage Δ
hive 48.29% <100.00%> (-0.87%) ⬇️
javascript ?
mysql 75.45% <100.00%> (?)
postgres 75.52% <100.00%> (?)
presto 52.77% <100.00%> (-1.03%) ⬇️
python 83.25% <100.00%> (+19.75%) ⬆️
sqlite 75.02% <100.00%> (?)
unit 61.34% <100.00%> (+3.71%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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.

@kgabryje
kgabryje requested a review from sadpandajoe April 13, 2025 12:48
@kgabryje
kgabryje merged commit 3c1fc0b into apache:master Apr 13, 2025
Darth-ATA pushed a commit to lavanda-uk/superset that referenced this pull request May 20, 2025
alexandrusoare pushed a commit to alexandrusoare/superset that referenced this pull request Jun 19, 2025
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants