-
Notifications
You must be signed in to change notification settings - Fork 8
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
Unit of work #498
base: main
Are you sure you want to change the base?
Unit of work #498
Conversation
02a3fe2
to
146dba3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #498 +/- ##
==========================================
- Coverage 81.81% 81.79% -0.02%
==========================================
Files 125 126 +1
Lines 9469 9492 +23
==========================================
+ Hits 7747 7764 +17
- Misses 1722 1728 +6 ☔ View full report in Codecov by Sentry. |
|
||
|
||
async def create_flappybird_best_score( | ||
db: AsyncSession, | ||
db: TransactionalAsyncSession, |
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.
db: TransactionalAsyncSession, | |
db: AsyncSession, |
@@ -48,33 +49,29 @@ async def get_flappybird_score_position( | |||
|
|||
|
|||
async def create_flappybird_score( | |||
db: AsyncSession, | |||
db: TransactionalAsyncSession, |
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.
db: TransactionalAsyncSession, | |
db: AsyncSession, |
# The use of transactional database requires the use of NullPool as it implies the use of a db in multiple run loops | ||
# https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html#using-multiple-asyncio-event-loops |
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.
We need to clear the usage of NullPool up. This should not break tests as this dependency should not be called during tests
Description
Please explain the changes you made here.
Checklist