Skip to content

chore[API]: create session factory to avoid memory leaks#71

Merged
djsilva99 merged 3 commits into
developfrom
djs/create_session_factory
Mar 9, 2026
Merged

chore[API]: create session factory to avoid memory leaks#71
djsilva99 merged 3 commits into
developfrom
djs/create_session_factory

Conversation

@djsilva99
Copy link
Copy Markdown
Owner

Description

This Pull Request creates a session factory to avoid memory leaks.

@djsilva99 djsilva99 marked this pull request as ready for review March 9, 2026 22:01
@djsilva99 djsilva99 merged commit e3fd163 into develop Mar 9, 2026
2 checks passed
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.21154% with 37 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.69%. Comparing base (ab93fb8) to head (4d0e7e7).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
apps/api/src/main.py 36.84% 12 Missing ⚠️
.../api/src/adapters/repositories/feeds_repository.py 82.14% 9 Missing and 1 partial ⚠️
...pi/src/adapters/repositories/sources_repository.py 77.14% 6 Missing and 2 partials ⚠️
apps/api/src/adapters/entrypoints/v1/routes.py 86.48% 5 Missing ⚠️
apps/api/src/domain/handlers/job_processors.py 83.33% 2 Missing ⚠️

❌ Your project status has failed because the head coverage (80.69%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage.

@@             Coverage Diff             @@
##           develop      #71      +/-   ##
===========================================
- Coverage    81.19%   80.69%   -0.50%     
===========================================
  Files           45       43       -2     
  Lines         1441     1466      +25     
  Branches        96       93       -3     
===========================================
+ Hits          1170     1183      +13     
- Misses         236      250      +14     
+ Partials        35       33       -2     
Files with missing lines Coverage Δ
...pi/src/adapters/repositories/filters_repository.py 100.00% <100.00%> (ø)
...pi/src/adapters/repositories/pickers_repository.py 100.00% <100.00%> (ø)
apps/api/src/configs/database.py 60.00% <100.00%> (ø)
apps/api/src/domain/services/job_service.py 80.45% <ø> (ø)
apps/api/src/domain/handlers/job_processors.py 83.33% <83.33%> (-16.67%) ⬇️
apps/api/src/adapters/entrypoints/v1/routes.py 74.78% <86.48%> (+1.23%) ⬆️
...pi/src/adapters/repositories/sources_repository.py 83.33% <77.14%> (+0.35%) ⬆️
.../api/src/adapters/repositories/feeds_repository.py 84.69% <82.14%> (+3.37%) ⬆️
apps/api/src/main.py 58.82% <36.84%> (-7.85%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants