Skip to content

Add a v2 countries table that matches one country list in code, GET /v2/countries and a startup check - #4012

Draft
anth-volk wants to merge 6 commits into
masterfrom
v2plan/1g-126-countries-table
Draft

anth-volk wants to merge 6 commits into
masterfrom
v2plan/1g-126-countries-table

Keep the startup check's log tests independent of earlier Alembic tests

975c80f
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Oct 22, 2026 in 1s

87.80% (+37.67%) compared to ee46c7a

View this Pull Request on Codecov

87.80% (+37.67%) compared to ee46c7a

Details

Codecov Report

❌ Patch coverage is 83.58974% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.80%. Comparing base (ee46c7a) to head (975c80f).

Files with missing lines Patch % Lines
policyengine_api/startup_country_check.py 78.78% 6 Missing and 1 partial ⚠️
policyengine_api/fastapi_routes/dependencies.py 40.00% 6 Missing ⚠️
policyengine_api/services/v2/countries/services.py 73.68% 3 Missing and 2 partials ⚠️
...cyengine_api/fastapi_routes/v2/countries/routes.py 86.66% 2 Missing and 2 partials ⚠️
...gine_api/services/v2/countries/database_session.py 71.42% 3 Missing and 1 partial ⚠️
...api/fastapi_routes/v2/countries/response_models.py 90.90% 1 Missing and 1 partial ⚠️
...ngine_api/services/v2/countries/transformations.py 71.42% 1 Missing and 1 partial ⚠️
...licyengine_api/services/v2/countries/validators.py 86.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #4012       +/-   ##
===========================================
+ Coverage   50.12%   87.80%   +37.67%     
===========================================
  Files         243      270       +27     
  Lines       14726    16333     +1607     
  Branches     2343     2653      +310     
===========================================
+ Hits         7382    14341     +6959     
+ Misses       6721     1306     -5415     
- Partials      623      686       +63     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.