Skip to content

Store dynamics like policies, create them through /v2/dynamics, and keep gov.simulation parameters out of policies - #4325

Merged
anth-volk merged 11 commits into
masterfrom
v2plan/c1-36-dynamics
Nov 19, 2026
Merged

anth-volk merged 11 commits into
masterfrom
v2plan/c1-36-dynamics

Say API v1 in the dynamics grant comment and test name

0229650
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Nov 18, 2026 in 0s

93.60% (-0.10%) compared to 16f410f

View this Pull Request on Codecov

93.60% (-0.10%) compared to 16f410f

Details

Codecov Report

❌ Patch coverage is 89.54869% with 44 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.60%. Comparing base (16f410f) to head (0229650).

Files with missing lines Patch % Lines
policyengine_api/services/v2/dynamics/services.py 69.23% 21 Missing and 3 partials ⚠️
...engine_api/services/v2/dynamics/transformations.py 72.22% 1 Missing and 4 partials ⚠️
policyengine_api/fastapi_routes/dependencies.py 33.33% 4 Missing ⚠️
.../services/v2/dynamics/database_connectors/reads.py 71.42% 3 Missing and 1 partial ⚠️
...ervices/v2/dynamics/database_connectors/creates.py 84.61% 2 Missing ⚠️
policyengine_api/dynamic_parameters.py 97.14% 0 Missing and 1 partial ⚠️
...ngine_api/services/v2/dynamics/database_session.py 92.85% 0 Missing and 1 partial ⚠️
...olicyengine_api/services/v2/dynamics/validators.py 96.29% 0 Missing and 1 partial ⚠️
...olicyengine_api/services/v2/policies/validators.py 90.90% 0 Missing and 1 partial ⚠️
...ine_api/services/v2/simulation_service/services.py 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4325      +/-   ##
==========================================
- Coverage   93.69%   93.60%   -0.10%     
==========================================
  Files         397      408      +11     
  Lines       22885    23282     +397     
  Branches     3651     3648       -3     
==========================================
+ Hits        21443    21794     +351     
- Misses        839      874      +35     
- Partials      603      614      +11     

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