Skip to content

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

Merged
anth-volk merged 6 commits into
masterfrom
v2plan/1g-126-countries-table
Oct 30, 2026
Merged

anth-volk merged 6 commits into
masterfrom
v2plan/1g-126-countries-table

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

1b1e815
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Oct 30, 2026 in 1s

88.09% (+37.45%) compared to 6c4d53a

View this Pull Request on Codecov

88.09% (+37.45%) compared to 6c4d53a

Details

Codecov Report

❌ Patch coverage is 83.58974% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.09%. Comparing base (6c4d53a) to head (1b1e815).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
policyengine_api/startup_country_check.py 78.78% 6 Missing and 1 partial ⚠️
policyengine_api/services/v2/countries/services.py 73.68% 3 Missing and 2 partials ⚠️
policyengine_api/fastapi_routes/dependencies.py 33.33% 4 Missing ⚠️
...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 ⚠️
...e_api/fastapi_routes/resource_service_protocols.py 50.00% 2 Missing ⚠️
...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.63%   88.09%   +37.45%     
===========================================
  Files         258      285       +27     
  Lines       14955    16577     +1622     
  Branches     2399     2712      +313     
===========================================
+ Hits         7573    14603     +7030     
+ Misses       6751     1294     -5457     
- Partials      631      680       +49     

☔ 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.