-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: Test connection before starting on create transaction #15100
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15100 +/- ##
==========================================
- Coverage 77.53% 77.38% -0.15%
==========================================
Files 967 967
Lines 49740 49752 +12
Branches 6351 6351
==========================================
- Hits 38565 38500 -65
- Misses 10973 11050 +77
Partials 202 202
Flags with carried forward coverage won't be shown. Click here to find out more.
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.
LGTM, but I wonder if we should add db.session.rollback()
to the except block in line 70 now?
SUMMARY
Small bug where on failure of db connection, service fails to rollback. To fix this i've put the db connection before running on create database
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION