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

Accept the withheld-area code lists on UK local-area breakdown results before any executor sends them

Đang mở Phù hợp với người mới
#977 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 1 ngày

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

Từ ngày 28/10/2026.

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
67/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
openapi, python
Lĩnh vực
api

Hướng nghiên cứu

Đọc hợp đồng và OpenAPI golden của gateway được issue tham chiếu, sau đó kiểm tra việc tuần tự hóa kết quả phân rã theo khu vực địa phương. Thêm hai trường tùy chọn dành cho các mã bị giữ lại vào hợp đồng và OpenAPI. Xác minh rằng kết quả không có danh sách sẽ lược bỏ cả hai khóa, còn danh sách rỗng vẫn được giữ lại. Issue không nêu tên bài kiểm thử hay đường dẫn tệp, vì vậy hãy xác định các bài kiểm thử tuần tự hóa liên quan dựa trên định nghĩa hợp đồng.

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

Mô tả

Part of #968.

Problem

#968 adds two optional fields to a UK local-area breakdown result (kind: local_areas): constituency_withheld_codes and local_authority_withheld_codes.

A push to main deploys the versioned executor before the stable gateway: in simulation-deploy.reusable.yml, deploy_gateway needs deploy_executor. The deployed gateway's contract rejects unknown keys. If one deploy both added the fields to the contract and had the executor fill them, the gateway would report every breakdown that finished between those two steps as failed.

What should happen

Deploy the change in two steps:

  1. The contract and the gateway accept the two fields, and no executor sends them. The executor redeployed in this step carries the new contract while the old gateway still serves, so a result that doesn't report the lists must leave both keys out of its JSON rather than write null.
  2. The executor fills them, in #975, once step 1 is deployed.

Done when

  • The contract has both optional fields, and the gateway's golden OpenAPI lists them.
  • A breakdown result without the lists dumps with the same keys as before.
  • An empty list ([]) is kept in the dump.
Ngôn ngữ chính
Python
Star
1
Fork
1
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
81

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-sim-api

Tất cả issue của PolicyEngine/policyengine-sim-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.