Sim's table models still map the report columns API v1 drops
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
调研方向
从 libs/policyengine-simulation-persistence/src/policyengine_simulation_persistence/tables.py 开始,将 Report、ReportRun 和 BudgetWindowRun 的映射与 issue 中列出的 API v1 表变更进行比较。检查 test_the_models_match_the_public_api_tables 和 public-api-schema-drift.yml,了解架构比较如何运行。列出的列、约束和索引均已移除,并且 libs/policyengine-simulation-persistence/public-api-commit 指向 #4335 的合并提交时,即为完成。
由索引模型根据 Issue 内容生成。
描述
API v1's revision 4e30076d4b9f (PolicyEngine/policyengine-api#4335, C1 · 41) drops nine columns from the v2 report tables:
reports.label,descriptionanduser_id, with the foreign keyfk_reports_user_id_usersand the indexix_reports_user_id;report_runs.trigger,baseline_cliff_gap,baseline_cliff_share,reform_cliff_gapandreform_cliff_share, with the checkck_report_runs_cliff_impact_complete;budget_window_runs.trigger.
Sim's mapped classes in libs/policyengine-simulation-persistence/src/policyengine_simulation_persistence/tables.py still declare all of them. Once #4335 merges, test_the_models_match_the_public_api_tables fails against API v1's master, so the weekly drift run (public-api-schema-drift.yml) fails, and no PR can move public-api-commit past that merge.
Done when:
Report,ReportRunandBudgetWindowRundeclare none of these columns, constraints or indexes.libs/policyengine-simulation-persistence/public-api-commitnames #4335's merge commit, so the comparison and the weekly drift run pass.
- 主要语言
- Python
- 星标
- 1
- 派生
- 1
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 71
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-sim-api 的其他 Issue
-
Rename Populace to Microcosm in docstrings and test names可能已有人在做 @MaxGhenis 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
PolicyEngine/policyengine-sim-api#1086 ·
维护者通常 1 天内回复
-
Update policyengine to 6.20.2可能已有人在做 @policyengine 于 6 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 63/100
PolicyEngine/policyengine-sim-api#1083 ·
维护者通常 1 天内回复
-
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 天内回复
-
public-api-schema-drift
难度 4/5 3-5 天 新手友好度 18/100
PolicyEngine/policyengine-sim-api#1114 ·
维护者通常 1 天内回复
查看 PolicyEngine/policyengine-sim-api 的全部 Issue
相似的 Issue
-
area: ci enhancement perceived difficulty: 1
难度 2/5 1-3 小时 新手友好度 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
vllm-project/vllm-sail#398 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
DiamondLightSource/sm-bluesky#476 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100