Remove household_options from the country metadata

オープン
#4,209 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@anth-volk がすでに取り組んでいます。

2026年11月5日 から。

  • #4210 @anth-volk による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
api

調査の方向性

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_options in the /{country}/metadata response, built by build_household_options in policyengine_api/country.py;
  • policyengine_api/household_years.py;
  • certified_spm_forecast_years in policyengine_api/spm.py, which only build_household_options used;
  • their tests.

A follow-up change defines each country's years once and uses them for economy_options.time_period.

主要言語
Python
スター
18
フォーク
33
平均マージ
2日 18時間
マージ済み PR(30日)
105

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PolicyEngine/policyengine-api のほかの issue

PolicyEngine/policyengine-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。