Add the one-time migration's provisioning command for migrated reports
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
- #944 來自 @anth-volk —— 已關閉,未合併
評估
研究方向
Start from the Simulation Entrypoint's migration/provisioning entry points and the existing Public API migration command; the payload names no files, so locate where the simulation schema, runtime role and v1 report export are configured. The command must read the versioned export, create simulation.simulations rows keyed by legacy_simulation_id, then simulation.reports rows keyed by legacy_report_id with year/options and no run, write the v1-to-v2 report ID map, and define the export schema/model/docs. Done means a dry run works, a second run creates nothing new, and the Public API command can consume the map; add tests for idempotency and dry-run.
由索引模型根據 Issue 內容生成。
描述
During the one-time migration of saved v1 reports to the v2 back end, the Simulation Entrypoint's simulation schema needs a row in simulation.reports for every v1 report an account row refers to, with its baseline and reform rows in simulation.simulations. Nothing creates those rows today.
What: an operator command, not an HTTP route, that reads the Public API's export of v1 report definitions and creates each report's simulations (keyed by legacy_simulation_id) and then the report (keyed by legacy_report_id), with its year and options and no run. It writes a file mapping each v1 report ID to its v2 report ID, which the Public API's migration command applies to account rows. It can run again without creating anything new, has a dry run, and connects as the runtime role.
Why: migrated reports must exist in sim before the Public API can point account rows at them. The first time a migrated report is opened, the Public API calculates it on the current catalog version.
The Public API's export does not exist yet, so this work also defines the input file's format: a versioned schema with a model and documentation, which the export will produce. The command is temporary and is removed once the v1 paths are retired.
- 主要語言
- Python
- 星號
- 1
- 分支
- 1
- 平均合併
- 1 天 12 小時
- 30 天內合併 PR
- 71
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
PolicyEngine/policyengine-sim-api 的其他 Issue
-
Sim's table models still map the report columns API v1 drops可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
PolicyEngine/policyengine-sim-api#1110 ·
維護者通常 1 天內回覆
-
Rename Populace to Microcosm in docstrings and test names可能已有人在做 @MaxGhenis 於 7 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 74/100
PolicyEngine/policyengine-sim-api#1086 ·
維護者通常 1 天內回覆
-
Update policyengine to 6.20.2可能已有人在做 @policyengine 於 7 天前認領。 未關閉
難度 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 天內回覆
查看 PolicyEngine/policyengine-sim-api 的全部 Issue
相似的 Issue
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shards未關閉status/accepted type/bug
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
bug vector-store
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
EverMind-AI/Raven#1413 ·
維護者通常 1 天內回覆
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS pools可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
維護者通常 2 天內回覆