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

Remove transitional cache access after country migrations

Đang mở
#602 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 2 ngày

Chưa có ai nhận issue này.

  • #603 của @anth-volk — đã đóng, không merge

Đá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
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

Start with draft PR #603 and the preparatory Core work in #599, tracked by #598, to identify the cache adapters, recovery paths, and compatibility mechanisms in scope; the issue names no files or tests. Read the country migrations in PolicyEngine/policyengine-us#9980 and PolicyEngine/policyengine-uk#2176, then validate against their released packages after all stated prerequisites are met. Done means the compatibility mechanisms are removed, replacements and the break are documented, and the required unit and migrated-path tests pass.

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

Mô tả

Purpose

Remove transitional Core cache access after the public ownership APIs and their
guarantees have shipped and both country packages have migrated.

Implementation: draft #603. Keep it dependent on the releases below; creating
the draft does not satisfy the merge prerequisites.

This is the last stage of a three-stage, four-PR sequence:

  1. Preparatory Core: #599, tracked by #598.
  2. Country migrations: PolicyEngine/policyengine-us#9980 and
    PolicyEngine/policyengine-uk#2176.
  3. This Core cleanup, in a separate dependent draft PR.

Prerequisites before merge

  • Publish the preparatory Core release.
  • Update both country minimum Core dependencies and lockfiles to that release.
  • Validate, merge, and publish both country migrations.
  • Validate this cleanup against those released country packages.

Source-checkout tests can support development before release, but do not satisfy
released-package validation. Do not invent future package version numbers.

Scope

  • Remove dictionary/set assignment adapters and recovery from legacy cache fields.
  • Expose read-only cache observations, with mutations through typed operations.
  • Reject removed writes instead of silently creating unused shadow attributes.
  • Remove Core's remaining dependence on those compatibility mechanisms.
  • Document supported replacements and the intentional compatibility break.
  • Add at least 40 meaningful unit cases per production commit and test migrated
    country paths without the removed mechanisms.

Preserve immutable entry sharing, authoritative supplied inputs, independent
branch snapshots, explicit policy sharing, revision-based invalidation, public
constructors, and public eager/lazy parameter configuration.

Phase 7 model-definition separation and persistent cache redesign are excluded.

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

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-core

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

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.