Skip to content

Conversation

@RajeshKumar11
Copy link

@RajeshKumar11 RajeshKumar11 commented Jan 19, 2026

Summary

Fixes issue where rescheduling a meeting overwrites the Google Calendar event description with the user's additional note instead of preserving the original event type description.

Root Cause

The buildCalEventFromBooking function in packages/lib/buildCalEventFromBooking.ts was incorrectly using booking.description (which stores the user's additional notes) as the calendar event description field:

// Before (incorrect)
description: booking.description || "",

This meant that when getRichDescription() was called to build the calendar event content:

  • The description field (which should contain the event type description) was actually containing the user's additional notes
  • The additionalNotes field wasn't being set
  • Result: The event type description was lost and replaced by the additional notes

Changes

  1. packages/lib/buildCalEventFromBooking.ts:

    • Added description field to the EventType type definition
    • Changed description to use eventType.description (the actual event type description)
    • Added additionalNotes field using booking.description (the user's notes)
  2. packages/lib/tests/buildCalEventFromBooking.test.ts:

    • Updated tests to reflect the correct behavior
    • Added description to mock eventType
    • Updated expected results to include both description and additionalNotes

How It Works Now

When getRichDescription() is called in CalendarManager, it will correctly include:

  • Description section: From eventType.description
  • Additional Notes section: From booking.description (user's notes)

Both sections appear in the Google Calendar event, preserving the original event type description while also showing the user's additional notes.

Test plan

  • Unit tests pass (yarn test packages/lib/__tests__/buildCalEventFromBooking.test.ts)
  • Create an event type with a description
  • Book the event with additional notes
  • Verify Google Calendar event shows both description AND additional notes
  • Reschedule the booking
  • Verify Google Calendar event still shows both description AND additional notes

E2E Test Added

Added apps/web/playwright/reschedule-description.e2e.ts to test this specific scenario with video recording enabled.

Fixes #26695

@CLAassistant
Copy link

CLAassistant commented Jan 19, 2026

CLA assistant check
All committers have signed the CLA.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 19, 2026
@github-actions github-actions bot added the 🐛 bug Something isn't working label Jan 19, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 2 files

Copy link
Member

@dhairyashiil dhairyashiil left a comment

Choose a reason for hiding this comment

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

Could you please attach before and after videos demonstrating the behavior?
This will help us clearly verify the change.

@dhairyashiil dhairyashiil marked this pull request as draft January 19, 2026 21:11
@pull-request-size pull-request-size bot added size/L and removed size/S labels Jan 20, 2026
The buildCalEventFromBooking function was incorrectly using
booking.description (user's additional notes) as the calendar event
description. This caused the event type description to be lost and
replaced by additional notes when rescheduling or editing location.

Changes:
- Added description field to EventType type definition
- Use eventType.description for the calendar event description field
- Use booking.description as additionalNotes field
- Updated tests to reflect the correct behavior

This ensures getRichDescription() in CalendarManager correctly combines
both the event type description AND additional notes in the calendar
event, rather than using additional notes as the primary description.

Fixes calcom#26695
Adds a dedicated E2E test to verify that event type descriptions
are preserved after rescheduling and not overwritten by user's
additional notes.

The test:
- Creates an event type with a description
- Books the event with additional notes
- Verifies calendar links contain the event type description
- Reschedules the booking
- Verifies the description is still preserved after reschedule

Related to calcom#26695
@RajeshKumar11 RajeshKumar11 force-pushed the fix/reschedule-description-override branch from a44515b to a1ac4e2 Compare January 20, 2026 02:11
Remove incorrect %20 to + replacement since Google Calendar
links use %20 encoding for spaces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working community Created by Linear-GitHub Sync size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When rescheduling a meeting, the additional note is copied inplace of the event desription in the google calendar event

3 participants