Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Store the metadata v3 reads in the v2 catalog, from PolicyEngine.py's public records

未关闭
#4,022 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

@anth-volk 已经在做这个了。

开始于 2026年10月22日。

  • #4023 来自 @anth-volk —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
api, backend, databases

调研方向

Start with the catalog publishing code and its format 2 records, then inspect PolicyEngine.py's public records at PolicyEngine/policyengine.py#701 and the /{country}/metadata route. Compare the metadata for the US and UK to check every new field, and review how earlier catalog versions leave those fields empty. Done means the published catalog matches both routes and the Public API uses a PolicyEngine.py release that provides the fields.

由索引模型根据 Issue 内容生成。

描述

The app's newer workspace (v3) reads several metadata fields from /{country}/metadata that the v2 catalog does not store: each model's entities (key, plural name, whether it is the person entity) and basic inputs (the household builder's default fields); each variable's input and hidden-input flags, its module, the parameter that names what it adds or subtracts, and the labels of its enum values; each parameter's economy and household flags; and bracket schedules as nodes of the parameter tree with their labels.

Without these fields, v3 cannot load its metadata from the v2 routes. PolicyEngine.py now publishes them in its public records (PolicyEngine/policyengine.py#701), so the catalog can take them from there instead of from the country package's tax-benefit system or a private PolicyEngine.py method.

What is needed:

  • Store the fields when a catalog version is published (catalog format 2), read only from PolicyEngine.py's public records.
  • Keep catalog versions published earlier unchanged: their new fields stay empty.
  • Check each new field against what /{country}/metadata publishes for the US and the UK.
  • Move the Public API's PolicyEngine.py dependency to the release that publishes the fields.
主要语言
Python
星标
18
派生
33
平均合并
2 天 18 小时
30 天内合并 PR
36

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PolicyEngine/policyengine-api 的其他 Issue

查看 PolicyEngine/policyengine-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。