Skip to content

[$75] Missing fields of connected calendars #590

Open
@maxceem

Description

@maxceem

Branch: feature/interview-update

There are various cases when after adding or deleting calendars, some calendars are missing in the UserMeetingSettings record. Expected behaviour: each calendar should always have the next 5 fields:

  • id <- calendar id
  • accountId
  • accountProvider
  • accessToken
  • isPrimary

Failed Cases

    • User doesn't have UserMeetingSettings
    • We add Microsoft calenadr
    • There is not primary calendar from Nylas returned, so we use any writable calendar

    Missing fields:id and isPrimary flag, see screenshot

    • User has UserMeetingSettings with one Microsoft calendar from above without id and isPrimary
    • We add Google calendar
    • Microsoft calendar disappears and there is no id for google calendar, see screenshot
    • If after this we again connect Microsoft Calendar, then Google Calendar disappears, and there is no id, see screenshot

I guess most of these issues are because of the missing id.

Task

Verify all these cases and make sure that we always have all 5 fields in all calendar records:

  1. User doesn't have UserMeetingSettings. Connect calendar which doesn't have is_primary at Nylas.
  2. User doesn't have UserMeetingSettings. Connect calendar which has is_primary at Nylas.
  3. User has UserMeetingSettings. Connect calendar which doesn't have is_primary at Nylas.
  4. User has UserMeetingSettings. Connect calendar which has is_primary at Nylas.
  5. Remove not last primary calendar, so another one become primary.
  6. Remove last primary calendar, so no calendars left.
  7. Any other case worth testing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions