Skip to content

Implemented Nylas calendar connect & delete functionalities. #577

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from Oct 20, 2021

Conversation

ghost
Copy link

@ghost ghost commented Oct 18, 2021

Also added method to create real Zoom meeting links.

Also added method to create real Zoom meeting links.
Now, Zoom account credentials are loaded from only one env variable and then parsed in the Zoom service for use. Also changed the tracking method for available Zoom credentials left to use. Its still in-memory.
Removed custom error handling logic previously implemented in the controller. Now its handled by the default error handler in app.js file & the error is invoked from the service.

Updated the 'handleConnectCalendarCallback' method in the service to stop creating duplicate calendars. And when connecting a new calendar and making it primary, the method makes the other existing calendars in the UserMeetingSettings record non-primary.

Additionally, updated the 'deleteUserCalendar' method in the service to give better error messages and to make another existing calendar as primary when deleting a primary calendar. Also, this method now envokes errors and lets the default error handler instead of the controller to handle them.
Copy link
Contributor

@maxceem maxceem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mahidulalvi-bonic, sorry for the delay with review, had some issues during reviewing.

I cannot test the changes fully, because when I connect Microsoft calendar for user who doesn't have UserMeetingSettings records yet, it's not created. So I cannot test deletion and duplication issues.

See the log when I connect Microsoft account https://monosnap.com/file/LDj8fXfmIJlhOKvsBkmIcoI3fRbfJX

There are no errors, but no records were added to the UserMeetingSettings table: https://monosnap.com/file/KkGMK74kqu3TrkWWFuyZEXtgUSFOiL

Copy link
Contributor

@maxceem maxceem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mahidulalvi-bonic

I've managed to test it using Google Account, so this PR is good for now. We will handle other issues separately.

@maxceem maxceem merged commit 37fb85d into topcoder-platform:feature/interview-nylas Oct 20, 2021
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.

2 participants