Skip to content

Serve economy reports at /v2/reports and save v2 report and simulation IDs - #4108

Draft
anth-volk wants to merge 20 commits into
v2plan/1g-126-countries-tablefrom
v2plan/2a-202-v2-economy-reports
Draft

anth-volk wants to merge 20 commits into
v2plan/1g-126-countries-tablefrom
v2plan/2a-202-v2-economy-reports

Say which report routes refuse a report that cannot run, and log thei…

e9cfc7e
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Oct 28, 2026 in 1s

87.38% (-0.43%) compared to 975c80f

View this Pull Request on Codecov

87.38% (-0.43%) compared to 975c80f

Details

Codecov Report

❌ Patch coverage is 78.50575% with 187 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.38%. Comparing base (975c80f) to head (e9cfc7e).

Files with missing lines Patch % Lines
...olicyengine_api/libs/simulation_economy_reports.py 4.54% 105 Missing ⚠️
policyengine_api/fastapi_routes/dependencies.py 64.10% 13 Missing and 1 partial ⚠️
..._api/services/v2/simulation_entrypoint/services.py 63.33% 9 Missing and 2 partials ⚠️
...engine_api/services/v2/economy_reports/services.py 88.88% 7 Missing and 2 partials ⚠️
...ine_api/services/v2/simulation_entrypoint/types.py 91.81% 8 Missing and 1 partial ⚠️
...licyengine_api/fastapi_routes/v2/reports/routes.py 92.77% 3 Missing and 3 partials ⚠️
...engine_api/services/v2/simulation_refs/services.py 83.33% 4 Missing and 2 partials ⚠️
...pi/services/v2/economy_reports/database_session.py 71.42% 3 Missing and 1 partial ⚠️
...api/services/v2/economy_reports/transformations.py 73.33% 3 Missing and 1 partial ⚠️
policyengine_api/services/v2/associations/types.py 72.72% 3 Missing ⚠️
... and 9 more
Additional details and impacted files
@@                        Coverage Diff                        @@
##           v2plan/1g-126-countries-table    #4108      +/-   ##
=================================================================
- Coverage                          87.80%   87.38%   -0.43%     
=================================================================
  Files                                270      286      +16     
  Lines                              16333    17144     +811     
  Branches                            2653     2760     +107     
=================================================================
+ Hits                               14341    14981     +640     
- Misses                              1306     1461     +155     
- Partials                             686      702      +16     

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