-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
refactor: use MongoDB singleton for connection management #1335
refactor: use MongoDB singleton for connection management #1335
Conversation
@kom-senapati is attempting to deploy a commit to the Arc53 Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Hey please check the imports and test the application. |
I had tested it locally before doing PR |
It seems like tests are failing for it:
|
…com/kom-senapati/DocsGPT into feature/mongodb-connection-refactor
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1335 +/- ##
==========================================
+ Coverage 32.93% 34.00% +1.06%
==========================================
Files 62 68 +6
Lines 3112 3347 +235
==========================================
+ Hits 1025 1138 +113
- Misses 2087 2209 +122 ☔ View full report in Codecov by Sentry. |
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, thank you!
Adds a file core/mongo_db.py for the singleton class of pymongo client which is used to get connections across all files and no extra connection is created.
Closes #1170