Open
Description
Branch feature/interview-update
.
We have endpoint to delete connected calendars which was implemented in this challenge https://www.topcoder.com/challenges/af9a1041-7a78-484d-87d3-5aec9e87b578?tab=details
DELETE /taas/user-meeting-settings/:userId/calendars/:calendarId
- Instead of actually deleting calendars we should keep them, and just mark them as deleted, like with flag
isDeleted: true
. (We need to keep calendars because maybe we have some interview scheduled with calendar we are deleting, so better we have access token to that calendar in case we need to make any change for already scheduled meeting). - When we get UserMeetingSettings using endpoint
GET /taas/user-meeting-settings/:userId
we should NOT return calendars marked as deleted. - When we connect a new calendar and there is existent deleted calendar with the same
id
we have to update its details and mark it as not deletedisDeleted: false
. So there should be never duplicate calendars with the sameid
even if it was deleted. When we connect already deleted calendar this might mean that we re-connect previously deleted calendar. I'm not sure if this situation would really happen or Nylas would alway give a newid
but better support it. - Make sure that we don't have any of the issues which we have in this issue [$75] Missing fields of connected calendars #590