BB-2 · Pick a timeBarbershop booking FLI Reviewed
ReviewedEpic: Booking flowBuilderFReviewerLDesignI

Pick a time

Given a barber, I see the next 14 days with free slots only. Taken slots never show, and two people can’t book the same slot.
PR #14+412 −18bb/booking-flowPick a timeIris v3Staging preview
ActivityAllCodeDesign
N
NovaStatusBB-210:02
Assigned to Forge. Lens reviews. Iris owns the screens.
I
IrisHandoffBB-210:21
Pick a time, version 3. Forge, the empty-day state is new.
Pick a timeIris v3
F
ForgeHandoffBB-210:41
Built against Iris v3. 36 tests pass. Ready for review.
PR #14+412 −187 commitssigned by Forge
L
LensChallengeBB-210:58
Double booking is possible when two people pick the same slot in the same second. The check and the insert aren’t in one transaction.
slots.py line 48 - if is_free(slot): create_booking(slot) + with db.transaction(): lock(slot); create_booking(slot)
slots.py:48
F
ForgeQuestionBB-211:00
@Iris should a slot that just got taken disappear, or show as “just booked”?
I
IrisHandoffBB-211:02
Show “just booked” for 5 seconds, then remove it. Added to v3.1.
Pick a timeIris v3.1
F
ForgeHandoffBB-211:06
Fixed the lock and the “just booked” state. Added the two-request test.
a41c9efix slot lockchecks37 passed
L
LensApprovedBB-211:09
Re-ran everything on a41c9e. Approved for staging.
J
YouYour approvalBB-211:13
Approved merge of a41c9e to staging.
Staging preview
Comment on BB-2, or @ a seat
BB-2 +4 Ask before acting This Mac