-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Require the SQLAlchemy URI on the database model #8720
Require the SQLAlchemy URI on the database model #8720
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8720 +/- ##
=========================================
- Coverage 65.9% 65.9% -0.01%
=========================================
Files 483 483
Lines 24163 24165 +2
Branches 2770 2770
=========================================
Hits 15925 15925
- Misses 8060 8062 +2
Partials 178 178
Continue to review full report at Codecov.
|
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.
@willbarrett you’ll have to add a Alembic migration as part of this PR since you’re updating the data model.
@john-bodley this change was to trigger a UI change in the FAB database UI. I don't feel strongly about adding a NOT NULL constraint at the database level. Do you think such a constraint would be valuable? |
I think we should keep the data model and the database in sync as much as possible here. Also because any generated migration will then try to add this restriction again |
Works for me. I'll add the migration. |
0fd1f60
to
1ad9d4e
Compare
CATEGORY
Choose one
SUMMARY
Currently, attempting to create a database connection without a SQLAlchemy connection string defined will throw a server error (calling
strip
onNoneType
). After the change, the system will reject empty SQLAlchemy connection strings correctly.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION
REVIEWERS
@etr2460 @betodealmeida @mistercrunch