Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Conversion to graph-based data model: Stage 1 - Convert to graph-based data model - Update requirements - Todo: Update API to support db changes - Todo: Complete the data model conversion - Todo: remove SQLAlchemy * Add NeoModel models Convert routes to use neomodel instead of SQLAlchemy * Replace PGSQL with Neo4j in the backend - Update docker-compose.yml to use the new neo4j container - Make additional corrections to the db models Additionally: Change env variable w/PDT to NPDI Our env vars will be changing anyway, so we might as well make this change now. * Update .env template * Update Config/ENV values * Remove SQL Alchemy code * Removed Sqlalchemy refrences. * Update requirements * Remove Alembic * Update DB Models - Add suffix to officer names - Add type and subtype to allegations - Add record ID to allegation and complaint - Allow for multiple agencies with the same name * Add request validation * Update Auth API endpoints * Implement paginated responses Implement hidden fields Implement serialization of Node properties - Note: This is a WIP * Move Neomodel class extensions to schemas.py * Update Partners API and fix errors - Get all partners - Get partner by ID - Create partner * Fix error in `to_dict()` * Updated Officer APIs - Get officer by ID - Get all officers - Create officer Fix error in officer model Add enum property for Partner MemberRole * Handle Node updates * Add Update to routes - officers - agencies - partners Fix temporary pydantic schema for agencies * Specify versions for core dependencies * Attempting to add a test DB * Disable flake8 (temp) * Update reqs + Test tests * Remove unused tests * Add app fixture * Retry Test Github action Update deprecated syntax Update Status codes and responses for register_user * Change id to element_id for Cypher queries. Update `test_register` and auth `resgister` route * Update Front end registration page to match API * Add local test DB * Update requirements * Update Auth tests * Add Testcleanup function Update reqs * Fix failing Agency endpoint tests * Fix officer tests * Fix Partner endpoint tests Note: Leaving out the invitation and joining tests for now * Skipping officer employment tests for now. This will require a larger feature change. * Add Test Marker to GH test DB * Use health check to seed test DB * Revert Health Check hack... * Update test db URI * Update frontend user db object conections * Update Jest tests * Disable frontend tests * Flake8 tests * Convert Partner -> Source * Update Readme to explain tests * JSONSerializable.to_dict() fixed for relationships Added full address to Units Added Hispanic/Latino to ethnicity * Add Cardinality to Officer, Agency, and Unit relationships * Make `StructuredRel`s JSON serializable * Add citations to officers, units, and agencies
- Loading branch information