Description of the Bug
The /health endpoint calculates an overall health status using both database health and ChromaDB health.
Although the endpoint correctly computes an overall status value, the returned JSON response mistakenly exposes db_status as the primary status field instead of the computed overall status.
As a result, if ChromaDB is down but the SQL database is healthy, the endpoint still returns a healthy status, causing monitoring systems to incorrectly assume the application is fully operational.
Steps to Reproduce
- Start the application normally.
- Stop or disconnect ChromaDB.
- Send a request to GET /health.
- Observe the response.
The primary status incorrectly reports the service as healthy.
Expected Behavior
The endpoint should return the computed overall status.
When either the database or ChromaDB is unavailable, the top-level status should indicate a degraded state rather than reporting the application as fully healthy.
Screenshots / Logs
No response
Environment
OS: Windows 11 Browser: Chrome Backend: FastAPI Vector Database: ChromaDB Database: SQLite/PostgreSQL
GSSoC '26
Description of the Bug
The /health endpoint calculates an overall health status using both database health and ChromaDB health.
Although the endpoint correctly computes an overall status value, the returned JSON response mistakenly exposes db_status as the primary status field instead of the computed overall status.
As a result, if ChromaDB is down but the SQL database is healthy, the endpoint still returns a healthy status, causing monitoring systems to incorrectly assume the application is fully operational.
Steps to Reproduce
The primary status incorrectly reports the service as healthy.
Expected Behavior
The endpoint should return the computed overall status.
When either the database or ChromaDB is unavailable, the top-level status should indicate a degraded state rather than reporting the application as fully healthy.
Screenshots / Logs
No response
Environment
OS: Windows 11 Browser: Chrome Backend: FastAPI Vector Database: ChromaDB Database: SQLite/PostgreSQL
GSSoC '26