28 lines
3 KiB
Markdown
28 lines
3 KiB
Markdown
# Scheduled slots and capacity
|
|
|
|
Scope: admin slot CRUD/assignment/capacity, customer slot discovery/cart choices, server checkout validation. Use time-relative S1/S2 and deliberately invalid slots.
|
|
|
|
| ID | Priority | Action / input | Expected result |
|
|
|---|---|---|---|
|
|
| SLOT-01 | P0 | Create active future A slot with P/G SKUs. | Correct assigned products, delivery/freeze instants and customer choices. |
|
|
| SLOT-02 | P1 | Edit times, SKU/group assignments and active state. | Changes persist/publish; only intended memberships changed. |
|
|
| SLOT-03 | P0 | Inactive/past-delivery/past-freeze slot offered through direct API. | Not selectable/orderable for new purchase. |
|
|
| SLOT-04 | P0 | Freeze time passes after cart selection but before submit. | Server rejects stale selection; no order or consumed coupon. |
|
|
| SLOT-05 | P0 | Mark full while customer has checkout open. | Refreshed UI blocks; stale direct order rejected without writes. |
|
|
| SLOT-06 | P1 | Reopen capacity and retry. | Slot becomes usable; no stale full state permanently cached. |
|
|
| SLOT-07 | P0 | A checkout sends B slot, missing slot or SKU absent from S1. | Region/existence/membership validation rejects. |
|
|
| SLOT-08 | P0 | Regular order sends null slot; flash order supplies arbitrary slots. | Regular rejected; flash normalization follows flash contract. |
|
|
| SLOT-09 | P1 | Freeze=now, delivery=now, freeze after delivery, midnight/IST dates. | Correct exact boundaries and invalid date-order rejection. |
|
|
| SLOT-10 | P1 | Invalid timestamps/timezone offset, missing fields. | No invalid/past accidental slot; clear validation. |
|
|
| SLOT-11 | P1 | Duplicate SKUs/groups, explicit plus grouped SKU. | Unique purchasable memberships. |
|
|
| SLOT-12 | P0 | Admin A assigns B regional SKU/group; global SKU allowed. | Foreign IDs denied; global works without owning region. |
|
|
| SLOT-13 | P1 | Selected S1 removed/closed while S2 valid. | Clear deterministic fallback/reselection; quantity preserved. |
|
|
| SLOT-14 | P1 | All slots unavailable for a cart SKU. | Unavailable line identified/excluded; no phantom fee/charge. |
|
|
| SLOT-15 | P1 | Simultaneous checkout near capacity/manual full toggle. | Record agreed capacity guarantee; no silent bypass of committed full state. |
|
|
| SLOT-16 | P1 | Slot update fails during related snippet/group writes. | No partial slot state; retry coherent. |
|
|
| SLOT-17 | P1 | Empty slot and slot with only hidden/deleted SKUs. | Intentional empty state; no invalid customer purchase. |
|
|
| SLOT-18 | P1 | Historical slot soft removal/deactivation or expired time. | Existing order time/history preserved; only new purchase blocked. |
|
|
| SLOT-19 | P2 | Many slots sorted across dates, picker refresh/scroll. | Stable chronological order and correct selected slot ID. |
|
|
| SLOT-20 | P0 | Customer/anonymous/B admin attempts A slot mutation. | Proper server authorization; no relation writes. |
|
|
|
|
Policy: distinguish explicit full flag from any numeric capacity rules. Do not assume a maximum count not defined in the product contract.
|