This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
[$80] Delete/Re-connect Calendar Integration #531
Open
Description
Once user connects calendar its shown here
At the moment there issue, it shows undefined
, but it has to show the email address which has been used to connect calendar.
The main task
- We have to always show the email of the calendar which user connected on this screen instead of
undefined
. - But at the moment we don't store connected calendar email in TaaS API so we have to start storing it
- After that we have to make sure that removing calendar and/or re-connecting works good from good end-to-end:
- we should be able to remove connected calendar by clicking
remove
button (it was already implemented using mock API, there might be small integration issues to fix) - if calendar is already connected, we should be able to connect another calendar and it would replace previously connected one (I guess this should already work, just verify and fix if anything)
- we should be able to remove connected calendar by clicking
TaaS API
- Update UserMeetingSettings model, so it also stores
email
for each connected calendars of the user. So objects insideUserMeetingSettings.nylasCalendars
should haveemail
field. - When we connect calendar we should save
email
insideUserMeetingSettings.nylasCalendars[*].email
when saving or updating calendar - Also, when user first time creates interview and doesn't have UserMeetingSettings, then we create UserMeetingSettings and Nylas Virtual Calendar, see code https://github.com/topcoder-platform/taas-apis/blob/feature/interview-update/src/services/InterviewService.js#L310-L319. In this case we have to also save user email. I guess the best is to update method which creates Virtual Calendar so it returns calendar object with email, here https://github.com/topcoder-platform/taas-apis/blob/feature/interview-update/src/services/NylasService.js#L35-L58
- Note, we can get email of account when calling
getAccessToken