Remove household_options from the country metadata
維護者通常 2 天內回覆
已經有一個關聯 PR 被合併了。
- #4210 來自 @anth-volk —— 已合併
評估
研究方向
Start with policyengine_api/country.py, policyengine_api/household_years.py, and policyengine_api/spm.py, then inspect the tests for build_household_options and the metadata response. Remove the listed household-specific options and their tests; done means /{country}/metadata no longer includes household_options, while the follow-up change handles the shared country years. Pull request #4210 is already open for this issue.
由索引模型根據 Issue 內容生成。
描述
Problem
#4159 added household_options.time_period to the /{country}/metadata response: a list of years for household calculations, separate from economy_options.time_period. No client reads it.
The maintainer decided on 4–5 November 2026 that household and society-wide calculations share one list of years per country. A separate household list is therefore no longer needed.
Change
Remove what #4159 added:
household_optionsin the/{country}/metadataresponse, built bybuild_household_optionsinpolicyengine_api/country.py;policyengine_api/household_years.py;certified_spm_forecast_yearsinpolicyengine_api/spm.py, which onlybuild_household_optionsused;- their tests.
A follow-up change defines each country's years once and uses them for economy_options.time_period.
- 主要語言
- Python
- 星號
- 18
- 分支
- 33
- 平均合併
- 2 天 17 小時
- 30 天內合併 PR
- 108
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PolicyEngine/policyengine-api 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
PolicyEngine/policyengine-api#4037 ·
維護者通常 2 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
PolicyEngine/policyengine-api#3911 ·
維護者通常 2 天內回覆
-
難度 1/5 1 小時以內 新手友好度 82/100
PolicyEngine/policyengine-api#3910 ·
維護者通常 2 天內回覆
-
service: policyengine-stage12-uk-worker telemetry-error
難度 4/5 3-5 天 新手友好度 25/100
PolicyEngine/policyengine-api#4228 ·
維護者通常 2 天內回覆
-
service: policyengine-simulation-py telemetry-error
難度 4/5 1-2 天 新手友好度 30/100
PolicyEngine/policyengine-api#4227 ·
維護者通常 2 天內回覆
查看 PolicyEngine/policyengine-api 的全部 Issue
相似的 Issue
-
area: web priority: P1 story
難度 2/5 1-3 小時 新手友好度 76/100
nfiasco/Quant-Time-Machine#151 ·
維護者通常 1 天內回覆
-
docs pydanty:is-working
難度 1/5 1-3 小時 新手友好度 85/100
pydantic/pydantic-ai#12892 ·
維護者通常 1 天內回覆
-
needs-triage
難度 1/5 1-3 小時 新手友好度 72/100
Azure/azure-sdk-for-python#49886 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
[Core] Deprecated(error=True) raises only on the first call; later calls run the removed API可能已有人在做 @wguo7 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
ray-project/ray#67965 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 88/100
btclib-org/btclib#3006 ·
維護者通常 1 天內回覆