breg: operator HTTP reads and actions for import runs, blocked Proposal applications and hook dead letters

Đang mở
#2,734 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.

Đá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
12/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ệ
node.js, python, rust
Lĩnh vực
api, backend

Hướng nghiên cứu

Start by reading crates/registry-breg/src/api/ingestion.rs and crates/registry-breg/src/ingestion_store.rs to see how import runs are currently scoped to their creator, then find an existing product's operator routes to copy the list/detail shape from. Map the three read routes (import runs, blocked Proposal applications, dead-lettered hook deliveries) before touching the actions, since actions depend on the reads. Done means list and detail routes with state, age and cursor paging, action routes with reason and idempotency key, maintained Rust/Node/Python client methods, and disclosure-profile plus security notes in the pull request.

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

Mô tả

Operators can find stuck BReg work only through bregctl on the host, and some of it not at all.

Today

  • Import runs can be read only by their creator (crates/registry-breg/src/api/ingestion.rs, crates/registry-breg/src/ingestion_store.rs). No operator-wide list or detail exists.
  • Blocked Proposal applications are a gauge (breg_proposal_application_blocked_jobs), not a list.
  • Hook dead letters are visible only through the CLI, and the list can fail or omit rows (#1798, #1796).
  • There is no HTTP route for any hook, timer or retention action, and CLI actions carry no named person.

Ask

Read routes:

  • Import runs across creators, by state, with a detail read.
  • Blocked Proposal applications, with the failure class and age.
  • Outbound hook deliveries by state, including dead-lettered.

Actions, after the reads:

  • Retry or discard a dead-lettered hook delivery.
  • Requeue a blocked Proposal application.

Shape

These routes follow the same shape as the other products' operator routes. It is a convention, not a shared contract:

  • A list of held or failed work with state, age and cursor paging, plus a detail read.
  • Actions only after the reads ship. Each action takes one item at a time, with a reason and an idempotency key. The product's own access profile authorises it for a named person's token, and the audit records it under that person.
  • Maintained client methods (Rust, and the Node and Python facades) in the same change.
  • An operator disclosure profile. The routes return identifiers, states, ages and failure classes, not record content or personal data.
  • Security review notes in the pull request, because each route widens what an operator token can read or change.

Related: #1492 (import run management), #1432, #2096, #1798, #1796.

Ngôn ngữ chính
Rust
Star
2
Fork
0
Merge trung bình
9 giờ 48 phút
Pull request đã merge (30 ngày)
151

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 registrystack/registry-stack

Tất cả issue của registrystack/registry-stack

Issue tương tự

Thêm issue về Rust

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.