Repository navigation
Conversation
aminagah7
commented
Oct 25, 2026
- Added GET /ready endpoint in HealthController according to GEN-10 requirement.
- Implemented PostgreSQL readiness check using DataSource validation with a 2-second timeout.
- Returns 200 OK with {"status": "UP", "database": "UP"} when healthy.
- Returns 503 SERVICE_UNAVAILABLE when database is unreachable.
- Added @crossorigin support for frontend integration.
add some prints
# Conflicts: # src/main/java/edu/softwarelab/starter/Test.java
# Conflicts: # src/main/java/edu/softwarelab/starter/Test.java
Test conflict deleting
…-persistence-model feat(db): implement settlement transfer persistence model and migration (S5-XX)
|
suggestion: When the database check fails and returns |
|
also script is not okay |
Amirhosein-shoorizadeh
left a comment
There was a problem hiding this comment.
change for some rhing that i requested
The correction has been made. |
What & WhyThis PR implements the database readiness probe (GET /ready) in HealthController in compliance with GEN-10 and enables CORS for frontend integration.
Jira Issue
How It Was Tested
|
Amirhosein-shoorizadeh
left a comment
There was a problem hiding this comment.
praise: Everything looks clean and well-structured!
- Verified that
GET /readyaccurately checks the PostgreSQLDataSourceconnection with a 2-second timeout perGEN-10. - Tested both
200 OK(when the DB container is up) and503 SERVICE_UNAVAILABLE(when the DB is stopped), as well as CORS headers for the frontend.
Ready to squash and merge!