Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Publish v2 catalog regions from the Public API's own region reference files

Đang mở
#4,019 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

@anth-volk đang làm issue này rồi.

Từ ngày 22/10/2026.

  • #4020 của @anth-volk — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

Start by locating the v2 region publication code and the certified data release inputs that provide row filters and weight matrices; the issue does not name specific files or tests. Check how the current PolicyEngine.py region registry feeds /v2/regions, then trace how region reference files should select households. Done means publication uses repository-owned references, rejects unavailable selectors, and omits US places that cannot run.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

What

The Public API should publish the regions of each v2 catalog version from region reference files it keeps in its own repository, one per country, instead of copying PolicyEngine.py's region registry.

Each file should list every region's code, label, type, parent and US state, the value that selects its households, and the v1 identifier it replaces (for example country/ni and constituency/Aldershot). Publication should then give each region its dataset and filter from the certified data release that PolicyEngine.py ships:

  • US states and congressional districts, and UK nations: a row filter (a column and a value).
  • UK constituencies and local authorities: the release's weight matrix and the region's row code in it.

It should refuse to publish a region the data cannot select, and leave out regions that cannot run yet (US places).

Why

  • Today /v2/regions lists only the regions PolicyEngine.py's registry exposes: 5 UK regions, and 333 US places that would calculate national figures if run as listed.
  • UK constituencies and local authorities are missing, and are known in v1 by name rather than by ONS code.
  • The registry's region lists and filters change with each PolicyEngine.py release, and nothing checks them against the data.

With reference files owned by the Public API, the catalog lists all 1,015 UK regions by ONS code, uses "United States" and "United Kingdom" as the national labels, and fails loudly when a filter column or matrix row is missing.

Ngôn ngữ chính
Python
Star
18
Fork
33
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
36

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PolicyEngine/policyengine-api

Tất cả issue của PolicyEngine/policyengine-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.