Remove UK constituency map coordinates from impact responses
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 38/100
調査の方向性
該当する API レスポンスモデル、シリアライザー、テスト、OpenAPI コントラクト、および issue で指定された API v2 の選挙区影響永続化モデルを、必要な Alembic マイグレーションとともに確認します。まず PolicyEngine/policyengine-app-v2#1190 の互換性要件を確認し、その後、現在の選挙区レスポンスと永続化のフィールドを追跡します。アイデンティティと影響値が維持され、コントラクトとストレージから座標がなくなり、コントラクトカバレッジがパスし、デプロイがフロントエンドの検証を待つ状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Supersedes PolicyEngine/policyengine-uk#1152 together with PolicyEngine/policyengine-app-v2#1190.
Current behavior
The UK constituency comparison code reads statistical weights from the private UK data repository and reads constituency codes, names, and hex-layout coordinates from the public UK data repository. It calculates constituency impacts, then places frontend-specific x and y positions in each API result. The planned API v2 ConstituencyImpact persistence model also stores those positions.
Required change
- Preserve constituency statistical aggregation and return the constituency identity, average household income change, and relative household income change without presentation coordinates.
- Use a stable constituency identifier in the response contract so app-v2 can join results to its versioned layout.
- Remove x and y from the applicable API response models, serializers, tests, OpenAPI contract, and API v2 constituency-impact persistence model.
- Add the required v2 Alembic migration if the coordinate columns have already been created in a retained target.
- Do not remove coordinates from a deployed response until PolicyEngine/policyengine-app-v2#1190 has been deployed and verified.
- Add contract coverage proving that constituency values and identities are preserved while layout positions are absent.
Deployment order
PolicyEngine/policyengine-app-v2#1190 is the compatibility prerequisite. Release the API contract change only after the frontend renders the same map from its own layout artifact.
- 主要言語
- Python
- スター
- 18
- フォーク
- 33
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 21
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PolicyEngine/policyengine-api のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
PolicyEngine/policyengine-api#3853 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
PolicyEngine/policyengine-api#3851 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
PolicyEngine/policyengine-api#3847 ·
-
PolicyEngine/policyengine-api#3818 · 担当者 1 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
PolicyEngine/policyengine-api#3816 ·
PolicyEngine/policyengine-api の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·