Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Remove UK constituency map coordinates from impact responses

オープン
#3,823 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
openapi, python
領域
api, backend, databases

調査の方向性

該当する 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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PolicyEngine/policyengine-api のほかの issue

PolicyEngine/policyengine-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。