Skip to content

feat: add scheduledDate to cohort weeks for session postponement#74

Merged
theanmolsharma merged 1 commit into
mainfrom
feat/postpone-cohort-sessions
Apr 7, 2026
Merged

feat: add scheduledDate to cohort weeks for session postponement#74
theanmolsharma merged 1 commit into
mainfrom
feat/postpone-cohort-sessions

Conversation

@theanmolsharma
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a non-nullable scheduledDate column to CohortWeek, replacing the implicit startDate + week * 7 date computation
  • Admins can postpone individual week sessions via PATCH /cohorts/weeks/:id with a scheduledDate field
  • When a session is postponed, the existing reminder task is cancelled and a new one is created for the updated date, and calendar update emails are sent to enrolled users
  • When the cohort startDate is updated, all week scheduledDate values are shifted by the same offset and reminder tasks are rescheduled
  • Migration backfills existing rows using the computed formula

🤖 Generated with Claude Code

Add a non-nullable scheduledDate column to CohortWeek, replacing the
implicit startDate + week*7 computation. Admins can now postpone
individual sessions via PATCH /cohorts/weeks/:id with a scheduledDate
field. Rescheduling updates reminder tasks and sends calendar updates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@theanmolsharma theanmolsharma merged commit 6460032 into main Apr 7, 2026
2 checks passed
@theanmolsharma theanmolsharma deleted the feat/postpone-cohort-sessions branch April 7, 2026 05:40
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