Skip to content

Edit a shift from its page; reschedule notice (#731) - #901

Merged
mbhewitt merged 1 commit into
mainfrom
feat/shift-page-edit
Nov 29, 2026
Merged

mbhewitt merged 1 commit into
mainfrom
feat/shift-page-edit

Conversation

@mbhewitt

Copy link
Copy Markdown
Owner

Refs #731, #466, #533. Roadmap item 5 (#849). Mew, 2026-11-29: "yes to all" to the six questions on #731.

  • Edit this shift on the shift page (SuperAdmins only). Opens a dialog with day, start/end, notes, canceled, and slots + CSP per position, and links to the shift type for everything else. It saves through the existing single-time PATCH /api/shifts/types/{typeId}/times/{timeId}.
  • Reschedule (Mew, 2026-09-05):
    • When the date or start/end changes, from here or from the Shift Types editor, op_shift_times.rescheduled_at is stamped.
    • Everyone on the shift gets 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.
    • Not checking in to a rescheduled shift scores 0 instead of −1. op_shift_history.penalty_exempt carries this, and the ETL (etl/shift_history.py) sets it.
  • Shift Types: adding a 2nd time to a shift silently fails to save #466: shift_instance is now unique per type (uq_type_instance), not across all types.
  • Shift-type editor: adding a position silently fails to save (front-end) #533: new times in the type editor all had timeId 0, so editing or removing one hit every new time. They now get a unique temporary negative id, and the API treats <= 0 as new.
  • Part B: canceled shifts stay on the Shifts agenda, struck through with a "Canceled" chip.

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

… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant