-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
[logging] deprecation notices for SQLite #9662
[logging] deprecation notices for SQLite #9662
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend using logger.warn
throughout instead of logger.info
, once you make the change though, it lgtm
Thank you @etr2460. It seems like logging.warn() has been deprecated for Python 3.4+, will use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, didn't realize that logger.warn
was deprecated. logger.warning
is great!
superset/migrations/env.py
Outdated
config.set_main_option("sqlalchemy.url", current_app.config["SQLALCHEMY_DATABASE_URI"]) | ||
DATABASE_URI = current_app.config["SQLALCHEMY_DATABASE_URI"] | ||
if "sqlite" in DATABASE_URI: | ||
logger.warning("SQLite DB support may not be supported by in future version") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar nit: could we use "SQLite Database support for metadata databases will be removed in a future version of Superset."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from one grammar nit :)
8246607
to
f5c5695
Compare
f5c5695
to
86e5cfe
Compare
Codecov Report
@@ Coverage Diff @@
## master #9662 +/- ##
=======================================
Coverage 70.53% 70.53%
=======================================
Files 574 581 +7
Lines 30152 30222 +70
Branches 3066 3072 +6
=======================================
+ Hits 21267 21317 +50
- Misses 8774 8794 +20
Partials 111 111
Continue to review full report at Codecov.
|
… lily/feature/deprecation-notices-SQLite
CATEGORY
Choose one
SUMMARY
Support for SQLite as a metadata database will be officially removed. SQLite may still be usable, but it will not be supported in future Alembic migrations. This PR is following step 1 on Immediate: plans from [SIP-33] #8874
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION
REVIEWERS
@willbarrett