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

Add the simulation report tables (reports and report_results)

Đã đóng
#846 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

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
postgresql, python, sqlalchemy

Hướng nghiên cứu

Read the persistence foundation and job store migrations, then trace how the initial migration sets default privileges for the runtime role. Add the simulation.reports and simulation.report_results tables with the fields and validation described in the issue. Done means the migration defines both tables and grants the runtime role access through those default privileges; the issue names no specific test or migration file.

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

Mô tả

Context

Step 1 of the API v2 migration (item 1A-5) adds the tables that v2 economy and household reports will use in Step 2, and that the one-time migration of API v1 reports will fill.

Scope

  • simulation.reports: kind (economy or household), a nullable legacy_report_id for reports migrated from the Public API, and a not_started status for migrated rows that have not been computed.
  • simulation.report_results: the report aggregate as JSONB validated by a Pydantic model, its schema version and SHA-256, summary columns and artifact URIs.

Nothing uses the tables yet.

Operator prerequisites

None beyond those of the persistence foundation (database roles and secrets) and the job store (Cloud Tasks configuration), which this builds on. The runtime role receives its table privileges from the default privileges set by the initial migration.

Ngôn ngữ chính
Python
Star
1
Fork
1
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
57

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.