-
Notifications
You must be signed in to change notification settings - Fork 10.4k
feat: add PATCH endpoint for updating Google Calendar events #22339
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
feat: add PATCH endpoint for updating Google Calendar events #22339
Conversation
- Create UpdateUnifiedCalendarEventInput DTO with optional fields for partial updates - Add PATCH /:calendar/event/:eventUid endpoint to CalUnifiedCalendarsController - Extend GoogleCalendarService with updateEventDetails method - Support updating title, description, start/end times for Google Calendar events - Follow existing patterns for validation, error handling, and response transformation - Initially support Google Calendar only with extensibility for other providers Co-Authored-By: somay@cal.com <somay@cal.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
✅ No security or compliance issues detected. Reviewed everything up to db95950. Security Overview
Detected Code Changes
Reply to this PR with |
- Add comprehensive field support to UpdateUnifiedCalendarEventInput DTO - Include locations, attendees, status, and hosts fields with proper validation - Expand GoogleCalendarService.updateEventDetails to handle complex field transformations - Add helper methods for response status and event status mapping - Preserve existing transformation logic from GoogleCalendarEventOutputPipe - Support conferenceData updates with conferenceDataVersion parameter Co-Authored-By: somay@cal.com <somay@cal.com>
- Add handling for geographic location field in addition to conferenceData - Filter non-video locations for the simple location string field - Preserve existing conferenceData support for video meetings - Verified against Google Calendar API documentation Co-Authored-By: somay@cal.com <somay@cal.com>
E2E results are ready! |
bookingReference.delegationCredential | ||
); | ||
|
||
const updatePayload: any = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createa a sepeare function that does the transormation, or a transformation pipe
- Create GoogleCalendarEventInputPipe following existing patterns - Extract transformation logic from updateEventDetails method - Move mapping methods to the new pipe for better organization - Improve code reusability and maintainability Addresses PR comment requesting transformation logic extraction. Co-Authored-By: somay@cal.com <somay@cal.com>
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work!
@@ -53,10 +53,9 @@ export class EventTypesPrivateLinksController { | |||
@ApiHeader(API_KEY_OR_ACCESS_TOKEN_HEADER) | |||
@ApiOperation({ summary: "Get all private links for an event type" }) | |||
async getPrivateLinks( | |||
@Param("eventTypeId", ParseIntPipe) eventTypeId: number, | |||
@GetUser("id") userId: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
This PR introduces functionality that allows users to update existing events in Google Calendar.
https://www.loom.com/share/c95d7367b7e44468b81f472e8e1909b1?sid=d8f6c54d-92e1-406b-ae94-27968d4b3776
2.
https://www.loom.com/share/87bf3d9d2ce04a77907561bbcf40dcaa?sid=810e30f2-dea3-41d6-b3ab-70b8b5cfff05