Repository navigation
Edit a shift from its page; reschedule notice (#731) - #901
Merged
Merged
Conversation
… instance (#731) Roadmap item 5 (Mew 2026-11-29, "yes to all"): - SuperAdmins get "Edit this shift" on the shift page: day, start/end, notes, canceled, slots + CSP per position (single-time PATCH). - Moving a shift stamps op_shift_times.rescheduled_at and emails the people on it the new time + updated invite (email.shift-rescheduled, editable on Emails); free to drop. Not checking in to a rescheduled shift scores 0, not -1 (op_shift_history.penalty_exempt, carried by the ETL). Same from the Shift Types editor. - #466: shift_instance unique per type, not across all types. - #533: new times in the type editor get a unique temporary id, so editing or removing one no longer hits every new time. - Part B: canceled shifts stay on the Shifts agenda, struck through. Migration 037. Footer 2027.G.00901.C. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #731, #466, #533. Roadmap item 5 (#849). Mew, 2026-11-29: "yes to all" to the six questions on #731.
PATCH /api/shifts/types/{typeId}/times/{timeId}.op_shift_times.rescheduled_atis stamped.email.shift-rescheduled: the old and new times, an updated ICS, and a note that they can drop it without penalty. The text is editable on Emails.op_shift_history.penalty_exemptcarries this, and the ETL (etl/shift_history.py) sets it.shift_instanceis now unique per type (uq_type_instance), not across all types.timeId0, so editing or removing one hit every new time. They now get a unique temporary negative id, and the API treats<= 0as new.Migration 037. On prod, apply it before deploy. ETL selftest passes. New e2e spec 40 passes; 11, 11b, 29, 32 and 39 pass locally. Footer 2027.G.00901.C.
🤖 Generated with Claude Code