Skip to content

Fix/google calendar backend routes - #2287

Merged
KaranUnique merged 1 commit into
Canopus-Labs:O-Authfrom
Suprita736:fix/google-calendar-backend-routes
Aug 31, 2026
Merged

Fix/google calendar backend routes#2287
KaranUnique merged 1 commit into
Canopus-Labs:O-Authfrom
Suprita736:fix/google-calendar-backend-routes

Conversation

@Suprita736

Copy link
Copy Markdown
Contributor

📝 Pull Request Description

Related Issue

Closes #1793

Summary

Implement the missing backend Google Calendar API required by the existing Interview Prep frontend.

This fixes the Google Calendar functionality that was previously failing because the frontend called /api/google-calendar/* routes that were not mounted by the backend.

The implementation adds the required backend routes for:

  • Starting the Google OAuth flow
  • Handling the OAuth callback
  • Checking the user's Google Calendar connection status
  • Syncing Interview Prep events to Google Calendar

Google Calendar credentials are handled on the backend and scoped to the authenticated user.


Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature
  • ♻️ Refactoring
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • 🔥 Other(please describe) ______

How Has This Been Tested?

  • Added unit tests covering the Google Calendar controller behavior.
  • Tested authenticated Google Calendar status/connect/sync behavior.
  • Tested OAuth callback and error handling.
  • Verified Google Calendar credentials remain user-scoped and are not exposed in API responses.
  • Ran the relevant backend tests/validation checks.

Screenshots (if applicable)

Not applicable — this is a backend/API fix.


Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request, @Suprita736! 🙌
We'll review it as soon as possible.
If there are any specific instructions or feedback regarding your PR, we'll provide them here.
Thanks again for your contribution to our project! 😊

@coderabbitai

coderabbitai Bot commented Aug 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 53 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2954af04-ca4f-44d8-846c-21f217c06970

📥 Commits

Reviewing files that changed from the base of the PR and between 420348a and fbc3157.

📒 Files selected for processing (6)
  • backend/controllers/googleCalendarController.js
  • backend/models/User.js
  • backend/routes/googleCalendarRoutes.js
  • backend/server.js
  • backend/tests/googleCalendarController.unit.test.js
  • backend/tests/interviewExperienceController.unit.test.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the merge ready PR is mergeable and has no conflicts label Aug 30, 2026
@KaranUnique
KaranUnique changed the base branch from main to O-Auth August 31, 2026 15:09
@KaranUnique
KaranUnique merged commit cd2b093 into Canopus-Labs:O-Auth Aug 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Google Calendar connect/sync in Interview Prep is dead on arrival - frontend calls /api/google-calendar/* routes the backend never mounts

2 participants