Skip to content

Conversation

@tonimelisma
Copy link

Summary

  • Add --send-updates flag to CalendarUpdateCmd and CalendarDeleteCmd to control notification behavior when modifying or canceling events with attendees
  • This follows the existing pattern from the create command which already has this flag

Problem

When updating or deleting calendar events with attendees, the attendees are not notified because the --send-updates flag was missing. This causes:

  • Stale events remaining in attendees' calendars
  • Duplicate/overlapping events when updates are made
  • Data synchronization issues for systems that manage calendars at arm's length (e.g., OpenClaw creating events with attendees)

Test plan

  • Run existing calendar tests: go test ./internal/cmd/... -run Calendar
  • Add validation tests for invalid --send-updates values on update/delete
  • Add integration tests verifying SendUpdates is passed to the API
  • Manual verification:
    • Create event with attendee: gog calendar create primary --summary "Test" --from ... --to ... --attendees "test@example.com" --send-updates all
    • Update event: gog calendar update primary <eventId> --summary "Updated" --send-updates all (attendee should be notified)
    • Delete event: gog calendar delete primary <eventId> --send-updates all (attendee should be notified of cancellation)

🤖 Generated with Claude Code

tonimelisma and others added 2 commits February 1, 2026 22:43
Add --send-updates flag to CalendarUpdateCmd and CalendarDeleteCmd to
control notification behavior when modifying or canceling events with
attendees.

Without this flag, attendees are not notified of updates or cancellations,
causing:
- Stale events remaining in attendees' calendars
- Duplicate/overlapping events when updates are made
- Data synchronization issues for systems managing calendars at arm's length

Changes:
- Add SendUpdates field to CalendarUpdateCmd and CalendarDeleteCmd
- Validate SendUpdates value (all, externalOnly, none)
- Pass SendUpdates to Patch and Delete API calls
- Update truncateParentRecurrence helper to accept sendUpdates parameter
- Add tests for validation and API integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add TestCalendarSendUpdates Go integration test and shell live test
that verify attendee notifications are sent on create/update/delete.

Tests are opt-in via GOG_IT_ATTENDEE / GOG_LIVE_CALENDAR_ATTENDEE env vars.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tonimelisma
Copy link
Author

Added integration tests for --send-updates flag (504094e).

Manual verification completed:

  • go test -tags=integration ./internal/integration/... -run TestCalendarSendUpdates passes
  • ✅ Attendee receives invitation email on event creation
  • ✅ Attendee receives update notification on event modification
  • ✅ Attendee receives cancellation email on event deletion

Tests are opt-in via GOG_IT_ATTENDEE (Go) / GOG_LIVE_CALENDAR_ATTENDEE (shell) environment variables.

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