Accept the withheld-area code lists on UK local-area breakdown results before any executor sends them
维护者通常 1 天内回复
评估
调研方向
阅读 issue 引用的契约和 gateway golden OpenAPI,然后检查本地区域细分结果的序列化。将两个可选的 withheld-code 字段添加到契约和 OpenAPI 中。验证没有列表的结果会省略两个键,而空列表仍会保留。Issue 未指定测试或文件路径,因此根据契约定义定位相关的序列化测试。
由索引模型根据 Issue 内容生成。
描述
Part of #968.
Problem
#968 adds two optional fields to a UK local-area breakdown result (kind: local_areas): constituency_withheld_codes and local_authority_withheld_codes.
A push to main deploys the versioned executor before the stable gateway: in simulation-deploy.reusable.yml, deploy_gateway needs deploy_executor. The deployed gateway's contract rejects unknown keys. If one deploy both added the fields to the contract and had the executor fill them, the gateway would report every breakdown that finished between those two steps as failed.
What should happen
Deploy the change in two steps:
- The contract and the gateway accept the two fields, and no executor sends them. The executor redeployed in this step carries the new contract while the old gateway still serves, so a result that doesn't report the lists must leave both keys out of its JSON rather than write
null. - The executor fills them, in #975, once step 1 is deployed.
Done when
- The contract has both optional fields, and the gateway's golden OpenAPI lists them.
- A breakdown result without the lists dumps with the same keys as before.
- An empty list (
[]) is kept in the dump.
- 主要语言
- Python
- 星标
- 1
- 派生
- 1
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 81
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-sim-api 的其他 Issue
-
Update policyengine to 6.7.3可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 半天 新手友好度 70/100
PolicyEngine/policyengine-sim-api#823 ·
维护者通常 1 天内回复
-
Integration tests fail due to missing UV virtual environment setup可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
PolicyEngine/policyengine-sim-api#314 ·
维护者通常 1 天内回复
-
Calculate budget windows on the v2 economy path可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 5/5 一周以上 新手友好度 35/100
PolicyEngine/policyengine-sim-api#981 ·
维护者通常 1 天内回复
-
Run whole economy reports on v2 in the Simulation Entrypoint可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 5/5 一周以上 新手友好度 25/100
PolicyEngine/policyengine-sim-api#973 ·
维护者通常 1 天内回复
-
Return a client error for simulation years the model cannot project its dataset to可能已有人在做 @anth-volk 于 3 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
PolicyEngine/policyengine-sim-api#969 ·
维护者通常 1 天内回复
查看 PolicyEngine/policyengine-sim-api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
pytest-dev/pytest-html#1085 ·
-
难度 2/5 1-3 小时 新手友好度 90/100
pollen-robotics/reachy_mini#1527 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 66/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复