scheduling: let a booking and an availability query name a specific arrival window

Đang mở
#2,731 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/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, rust
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start with crates/registry-scheduling-core/src/policy.rs around the start-based window selection cited in the issue, then inspect the generated OpenAPI document at products/scheduling/generated/registry-scheduling.openapi.json and the related clients. Trace admission, rescheduling, and availability entry points and their tests. Done means same-start windows publish and book independently, ambiguous requests return a clear problem code, availability supports window identifiers and filtering, and the OpenAPI document and clients are regenerated; coordinate with the linked source-published windows issue.

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

Mô tả

area:scheduling criticality:p2 enhancement triage:needs-implementation

Use case

Distinct sessions of one offering can start at the same time: two exam rooms at 09:00, or two activities at 19:00. Callers need to book a specific session and see availability per session.

Current evidence

  • A request picks its window by start, so two windows of one offering may not open together.
  • In the OpenAPI document, AdmissionRequest has no window field and AvailabilitySlot carries no window identifier.
  • The workaround is one offering per session. Each new offering needs a policy publication with the migration credential, which does not suit sessions created during normal operation.

Proposed behaviour

  • An optional window on admission and on a reschedule target.
  • A window identifier on each availability slot, and an optional window filter on availability.
  • Windows of one offering may share a start. A request that names no window, where the start is ambiguous, is refused with a problem that tells the caller to name the window.
  • Deployments without same-start windows behave exactly as today.

Acceptance criteria

  • Two windows of one offering with the same start publish, and each books independently up to its own units.
  • A request naming no window on an ambiguous start is refused with a clear problem code.
  • Existing single-window flows and their tests are unchanged.
  • Availability returns window identifiers and filters by window.
  • The OpenAPI document and clients are regenerated.

Delivery

Implemented in one PR with the source-published windows issue that follows this one.

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.