Skip to content

Introduce MongoEngine #19

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

Open
wants to merge 5 commits into
base: refactoring-mongodb-constants
Choose a base branch
from

Conversation

rkoumis
Copy link
Owner

@rkoumis rkoumis commented Jan 14, 2025

  • Change how we connect to mongoDB
  • Add basic document types
  • Add some tests
  • Update web/analysis/views.py to use MongoEngine when retrieving calls by object ID

- Added a new file: mongodb_constants.py
- We'll use this new file whenever we're touching mongodb
- The new constants are collection names and some field names
- A bit of refactoring to ensure testability.
- Using mongomock, write tests for web/analysis/views
- Add a test for report doc insert calls
- Add tests for perform_search
- Change how we connect to mongoDB
- Add basic document types
- Add some tests
- Update web/analysis/views.py to use MongoEngine when retrieving calls by object ID
@rkoumis rkoumis force-pushed the refactoring-mongodb-constants branch from 370c375 to 0eb334c Compare January 27, 2025 15:57
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.

1 participant