Repository navigation
Resend a series or session calendar invite - #454
Merged
Merged
Conversation
jhodapp
marked this pull request as ready for review
October 20, 2026 18:20
Contributor
[Medium impact] The latest changes appear safe to merge; no new actionable issue was found. SummaryAdds coach-only actions to resend session and series calendar invites. Series resends include deleted dates and changed occurrences while keeping the existing calendar identity.
|
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.
Description
Lets a coach resend the calendar invite for a coaching session series or a one-off session. A coachee who missed or declined part of a series gets an
.icsthat matches the series as it is now, and their calendar updates the existing event instead of adding a duplicate.Frontend: refactor-group/refactor-platform-fe#490.
Changes
POST /coaching_session_series/:id/resend_inviteandPOST /coaching_sessions/:id/resend_invite(coach only, no body).{details.reason}=legacy_series/no_upcoming_sessions/series_member; 502 when the coachee wasn't reached..ics: the master RRULE, plus an EXDATE per deleted occurrence, plus an override VEVENT per moved one. To support this,ical.rsgained EXDATE and multi-VEVENTbuild_calendar.ical_sequenceto at least the series' value. Google Calendar drops an override whose SEQUENCE is lower than its master's; the live test caught this.send_series_invite_emailnow reportsDelivered, the same way the one-off path already did.GET /users/:id/coaching_sessions?include=seriesaddsseries: { id, last_session_date }, so the UI can disable the action on a finished series.Testing Strategy
cargo test --workspace --features mock: 2780 pass. New coverage: snapshot builder, delivery reporting, all 10 endpoint cases through the real routers, andinclude=series.refactor-platform-fe/docs/test-plans/resend_calendar_invite_manual_testing.md.SESSION_REMINDER_EMAIL_TEMPLATE_ID=(blank). Otherwise the reminder sweep emails real participants at boot.Concerns
Three problems found here that predate this branch:
.icsis anchored to the coach's timezone. Around DST, the calendar and the app drift by an hour.