Skip to content
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

fix(superset.cli): superset cli group doesn't support superset extension app #17539

Merged
merged 5 commits into from
Nov 26, 2021

Conversation

ofekisr
Copy link
Contributor

@ofekisr ofekisr commented Nov 24, 2021

SUMMARY

When you run the Superset app, the app is loaded via Flask. Flask determines how to load the app by the FLASK_APP env variable.
In case you would like to develop an app that extends Superset, you can extend the app creation by supplying alternative FLASK_APP value instead of FLASK_APP="superset.app:create_app()"

but the Superset Cli group ignores that value by passing a redundant argument to FlaskGroup.

When the create_app argument is missed, it creates the application the same way the app is created on running Flask app

so when I set alternative value for Flask_app I can run superset init on the extended superset app

@codecov
Copy link

codecov bot commented Nov 24, 2021

Codecov Report

Merging #17539 (a060b19) into master (7353a2b) will decrease coverage by 0.02%.
The diff coverage is n/a.

❗ Current head a060b19 differs from pull request most recent head 8bc5e2c. Consider uploading reports for the commit 8bc5e2c to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17539      +/-   ##
==========================================
- Coverage   76.81%   76.79%   -0.03%     
==========================================
  Files        1049     1049              
  Lines       56653    56652       -1     
  Branches     7847     7847              
==========================================
- Hits        43517    43504      -13     
- Misses      12883    12895      +12     
  Partials      253      253              
Flag Coverage Δ
mysql 82.00% <ø> (-0.01%) ⬇️
postgres 82.01% <ø> (-0.01%) ⬇️
python 82.06% <ø> (-0.05%) ⬇️
sqlite ?

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

Impacted Files Coverage Δ
superset/cli.py 54.82% <ø> (-0.11%) ⬇️
superset/db_engine_specs/sqlite.py 91.89% <0.00%> (-5.41%) ⬇️
superset/connectors/sqla/utils.py 88.23% <0.00%> (-3.93%) ⬇️
superset/utils/celery.py 86.20% <0.00%> (-3.45%) ⬇️
superset/result_set.py 96.77% <0.00%> (-1.62%) ⬇️
superset/utils/cache.py 73.58% <0.00%> (-0.95%) ⬇️
superset/db_engine_specs/base.py 87.62% <0.00%> (-0.59%) ⬇️
superset/models/slice.py 84.72% <0.00%> (-0.50%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7353a2b...8bc5e2c. Read the comment docs.

Copy link
Member

@craig-rueda craig-rueda left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@craig-rueda craig-rueda left a comment

Choose a reason for hiding this comment

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

Can you update the UPDATING.md as this might affect some users.

@ofekisr
Copy link
Contributor Author

ofekisr commented Nov 24, 2021

@craig-rueda

Can you update the UPDATING.md as this might affect some users.

done

@craig-rueda craig-rueda merged commit da75028 into apache:master Nov 26, 2021
@@ -34,7 +34,9 @@ assists people when migrating to a new version.
### Potential Downtime

- [16756](https://github.com/apache/incubator-superset/pull/16756): a change which renames the `dbs.allow_csv_upload` column to `dbs.allow_file_upload` via a (potentially locking) DDL operation.

- [17539](https://github.com/apache/superset/pull/17539): all Superset CLI commands
Copy link
Member

Choose a reason for hiding this comment

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

@ofekisr this change—though relevant for inclusion in UPDATING.md—should be housed under the "Breaking Changes" section as opposed to "Potential Downtime".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How does it breaking change?

@john-bodley john-bodley mentioned this pull request Dec 10, 2021
9 tasks
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants