UK metadata: moduleName is empty for every variable, and modelled_policies is a file path
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by tracing the UK metadata response for GET /uk/metadata and compare it with the US response, focusing on how variables' module paths populate moduleName and how programs.yaml is loaded into modelled_policies. Check the relevant API tests and add coverage for both fields. Done means UK variables expose module names and modelled_policies contains parsed YAML data.
由索引模型根据 Issue 内容生成。
描述
Problem
Two fields in GET /uk/metadata (policyengine-uk 2.130.1) differ from /us/metadata:
moduleNameis empty for every UK variable. All 1,163 variables havemoduleName: "". For the US, 6,104 of 6,167 variables have it (for examplehousehold.income.person.tip_income). The app groups household inputs by module, so every UK input lands in one "Other" group.modelled_policiesis a file path, not data. It is the string/opt/venv/lib/python3.12/site-packages/policyengine_uk/programs.yaml. For the US it is the parsed object. It looks like the path toprograms.yamlis returned without the file being loaded.
Request
- Fill
moduleNamefor UK variables the same way as for the US (from the variable's module path in policyengine-uk). - Return the parsed
programs.yamlcontent inmodelled_policiesfor the UK.
Context
The app works around (1) with a list of UK inputs keyed by name, and skips (2), in PolicyEngine/policyengine-app-v2.
- 主要语言
- Python
- 星标
- 18
- 派生
- 33
- 平均合并
- 2 天 18 小时
- 30 天内合并 PR
- 36
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-api 的其他 Issue
-
难度 1/5 1-3 小时 新手友好度 88/100
PolicyEngine/policyengine-api#3911 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
PolicyEngine/policyengine-api#3910 ·
维护者通常 3 天内回复
-
Stop serving economy results cached with ×100 decile relative changes可能已有人在做 @anth-volk 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 45/100
PolicyEngine/policyengine-api#4025 ·
维护者通常 3 天内回复
-
Store the metadata v3 reads in the v2 catalog, from PolicyEngine.py's public records可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
PolicyEngine/policyengine-api#4022 ·
维护者通常 3 天内回复
-
Request UK constituency and local-authority impacts separately from the national economy result可能已有人在做 @anth-volk 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
PolicyEngine/policyengine-api#4021 ·
维护者通常 3 天内回复
查看 PolicyEngine/policyengine-api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
aws-samples/sample-per-model-bedrock#464 ·
维护者通常 1 天内回复
-
lesson-submission pending-review
难度 2/5 1-3 小时 新手友好度 67/100
Ikalus1988/MisakaNet#3789 ·
维护者通常 1 天内回复
-
Python Volcengine provider returns failures instead of raising them可能已有人在做 @Ricardo-M-L 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
agent-infra/sandbox#248 ·
-
[Bug] cloud JSON directory loading assumes a Key field in fsspec listings可能已有人在做 @Ricardo-M-L 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
hiyouga/LlamaFactory#10910 ·
维护者通常 1 天内回复
-
Bundled uv is never updated and trusts the compromised eMudhra certificates可能已有人在做 @FabienDanieau 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100