Skip to content

TW-4986: fix(calendar): fix recurring events API and integration tests - #8

Merged
qasim-nylas merged 1 commit into
mainfrom
cli-fix-cal-i001
Jan 30, 2026
Merged

qasim-nylas merged 1 commit into
mainfrom
cli-fix-cal-i001

Conversation

@qasim-nylas

Copy link
Copy Markdown
Collaborator

This commit fixes two issues with recurring event functionality:

  1. API Parameter Fix (calendars_virtual_recurring.go):

    • Changed query parameter from event_id to master_event_id
    • The Nylas v3 API requires master_event_id to fetch instances of a recurring event series
    • Previous parameter caused "schema: invalid path event_id" error
  2. Integration Test Fix (recurring_events_test.go):

    • Changed calendar selection from "first non-read-only" to "primary"
    • The first calendar returned is often "Holidays" (read-only)
    • Other shared calendars may also reject event creation
    • Only the primary calendar reliably allows event modifications

Updated unit tests to verify the correct API parameter is used.

Fixes: TestRecurringEventOperations, TestRecurringEventPatterns

This commit fixes two issues with recurring event functionality:

1. API Parameter Fix (calendars_virtual_recurring.go):
   - Changed query parameter from `event_id` to `master_event_id`
   - The Nylas v3 API requires `master_event_id` to fetch instances
     of a recurring event series
   - Previous parameter caused "schema: invalid path event_id" error

2. Integration Test Fix (recurring_events_test.go):
   - Changed calendar selection from "first non-read-only" to "primary"
   - The first calendar returned is often "Holidays" (read-only)
   - Other shared calendars may also reject event creation
   - Only the primary calendar reliably allows event modifications

Updated unit tests to verify the correct API parameter is used.

Fixes: TestRecurringEventOperations, TestRecurringEventPatterns
@qasim-nylas
qasim-nylas merged commit 778771c into main Jan 30, 2026
6 checks passed
@qasim-nylas
qasim-nylas deleted the cli-fix-cal-i001 branch January 30, 2026 18:29
@qasim-nylas qasim-nylas changed the title fix(calendar): fix recurring events API and integration tests TW-4986: fix(calendar): fix recurring events API and integration tests May 13, 2026
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