andrew-codes / playnite-web

Self-hosted Playnite companion web app; offering remote control, automation, sharing what’s in your library with friends.
GNU Affero General Public License v3.0
26 stars 7 forks source link

refactor(misc): 💡 add better logging, single db connection #483

Closed andrew-codes closed 1 month ago

andrew-codes commented 1 month ago

Ensure a single database connection is used across all requests.

✅ Closes: #481

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 55 lines in your changes missing coverage. Please review.

Project coverage is 5.53%. Comparing base (7878dca) to head (d9f1872). Report is 7 commits behind head on main.

Files Patch % Lines
apps/game-db-updater/src/handlers/persistAssets.ts 0.00% 23 Missing :warning:
...b-updater/src/handlers/persistGameEntityRemoval.ts 0.00% 10 Missing :warning:
...ame-db-updater/src/handlers/persistGameEntities.ts 0.00% 9 Missing :warning:
...laynite-web/src/server/graphql/data/mongo/index.ts 0.00% 6 Missing :warning:
apps/game-db-updater/src/dbClient.ts 0.00% 4 Missing :warning:
apps/game-db-updater/src/index.ts 0.00% 2 Missing :warning:
apps/playnite-web/src/server/graphql/Domain.ts 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #483 +/- ## ======================================= + Coverage 0 5.53% +5.53% ======================================= Files 0 82 +82 Lines 0 1428 +1428 Branches 0 213 +213 ======================================= + Hits 0 79 +79 - Misses 0 1349 +1349 ``` | [Flag](https://app.codecov.io/gh/andrew-codes/playnite-web/pull/483/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andrew+Smith) | Coverage Δ | | |---|---|---| | [component-tests](https://app.codecov.io/gh/andrew-codes/playnite-web/pull/483/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andrew+Smith) | `14.03% <ø> (?)` | | | [unit-tests](https://app.codecov.io/gh/andrew-codes/playnite-web/pull/483/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andrew+Smith) | `4.79% <0.00%> (?)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Andrew+Smith#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 month ago

:tada: This issue has been resolved in version 5.0.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: