Open emrysal opened 1 month ago
Hi @emrysal , I am trying to work on this issue. Can you please give more clarification with regards to - "in which scenario exactly do we need to update CredentialId in BookingReference, when new Credential is added?"
Consider this scenario -
May be should we check in case of Calendar Apps, that new credential is added for same calendar, and update old BookingReferences with this new CredentialId?
Please correct me with my understanding.
Hi @emrysal, Have raised PR for this feature, please have look and share your thoughts. Approach:
BookingReferences
that have credentialId
has null
, due to a Credential deletion (caused by disconnecting an App).type
, userId
and selectedCalendars
(for CalendarApps) of the new Credential being created is matched with type
(EventManager populates this column in BookingReference from integration type which is the same used for Credential creation) , booking -> userId
, externalCalendarId
correspondingly.google-meet
being a special case, EventManager connects the google-calendar
credential to google-meet
, in same way this is also handled.
Is your proposal related to a problem?
When connecting a new Credential, we should check the BookingReference and detect whether the new Credential reconnects the access of the Booking to an integration. If so we can update the credentialId with the created Credential.
CAL-4398