Skip to content

Default US metadata to Populace#3715

Merged
MaxGhenis merged 1 commit into
masterfrom
codex/populace-region-default-20260701
Jul 1, 2026
Merged

Default US metadata to Populace#3715
MaxGhenis merged 1 commit into
masterfrom
codex/populace-region-default-20260701

Conversation

@MaxGhenis

Copy link
Copy Markdown
Collaborator

Summary\n- advertise the certified Populace bundle as the default US economy dataset in metadata\n- keep legacy CPS and enhanced CPS as explicit non-default options\n- add a regression test so app-v2 continues to omit dataset= for default Populace runs\n\nThis complements PolicyEngine/populace#228, which makes the sparse L0+refit build the default release artifact. API economy runs already omit the concrete data field for dataset=default, allowing the simulation gateway/policyengine.py bundle to resolve the certified Populace dataset and apply state/CD row filters.\n\n## Tests\n- uv run ruff format policyengine_api/country.py tests/unit/services/test_metadata_service.py\n- uv run ruff check policyengine_api/country.py tests/unit/services/test_metadata_service.py\n- uv run pytest tests/unit/services/test_metadata_service.py tests/unit/services/test_economy_service.py::TestEconomicImpactSetupOptions::TestSetupSimOptions tests/unit/libs/test_simulation_api_modal.py::TestSimulationAPIModal::TestRun::test__given_api_v1_default_bundle_payload__then_posts_gateway_contract_body

@MaxGhenis MaxGhenis force-pushed the codex/populace-region-default-20260701 branch from 0a93bc5 to 158817f Compare July 1, 2026 06:54
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.81%. Comparing base (63bb169) to head (158817f).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3715   +/-   ##
=======================================
  Coverage   78.81%   78.81%           
=======================================
  Files          71       71           
  Lines        4320     4320           
  Branches      804      804           
=======================================
  Hits         3405     3405           
  Misses        702      702           
  Partials      213      213           

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

@MaxGhenis MaxGhenis merged commit 3e01568 into master Jul 1, 2026
10 checks passed
@MaxGhenis MaxGhenis deleted the codex/populace-region-default-20260701 branch July 1, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant