-
Notifications
You must be signed in to change notification settings - Fork 15.2k
chore: Extensions architecture POC #31934
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
base: master
Are you sure you want to change the base?
chore: Extensions architecture POC #31934
Conversation
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #31934 +/- ##
===========================================
+ Coverage 60.48% 72.45% +11.97%
===========================================
Files 1931 564 -1367
Lines 76236 40559 -35677
Branches 8568 4253 -4315
===========================================
- Hits 46114 29389 -16725
+ Misses 28017 10077 -17940
+ Partials 2105 1093 -1012
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
904fbd9
to
871787f
Compare
3cde2af
to
f766cc4
Compare
496c566
to
76a4e83
Compare
superset/migrations/versions/2025-03-07_08-35_d4d5115bdeb0_add_extensions_table.py
Show resolved
Hide resolved
870c262
to
9f0fbc0
Compare
812f875
to
e34b695
Compare
75d47d8
to
c6af959
Compare
SUMMARY
This branch is for POC purposes and should not be merged to master. It contains the following packages:
extensions
Example extensions used for testing and validating the package dependencies.
superset-frontend/packages/superset-core
Our package with UI components, utility functions, types, and APIs used by extensions.
superset-core
The host APIs used by backend extensions.
superset-cli
CLI commands to build, bundle and hot-rebuild extensions.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
The Dataset references extension displays relevant information for SQL authors in SQL Lab:
Screen.Recording.2025-06-04.at.10.48.32.mov
TESTING INSTRUCTIONS
1 - Set the
ENABLE_EXTENSIONS
feature flag toTrue
.2 - Run
npm ci
onsuperset-frontend
.3 - Install the development dependencies by running
pip install -r requirements/development.txt
. This will pull in the new cli package that contains thesuperset-extensions
command.4 - Bundle an extension by going into its root folder and executing
superset-extensions bundle
. This will build the extension and generate a.supx
bundle of the extension.5 - Upload the
.supx
file to Superset using Swagger and theextensions
endpoint.6 - Go to
SQL
->SQL Lab
and check the extension.For development mode:
1 - Execute steps 1, 2 and 3 above.
2 - Configure Superset's
LOCAL_EXTENSIONS
variable like:3 - Run in development mode by going into the extension root folder and executing
superset-extensions dev
. This will trigger hot-rebuilding of your frontend assets. Backend assets are currently reloaded by the default reloading mechanisms of Superset usingsuperset run --reload
.4 - Go to
SQL
->SQL Lab
and check the extension.ADDITIONAL INFORMATION