fix(calendar): sync Cal.diy iCalUID events#29580
Conversation
|
Welcome to Cal.diy, @Shreyas2004wagh! Thanks for opening this pull request. A few things to keep in mind:
A maintainer will review your PR soon. Thanks for contributing! |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
fix the suggested changes, otherwise the pr looks good |
|
Hi @kartik-212004 , Thanks for checking it. I looked through the PR review threads and did not see any actionable inline suggestions. CodeRabbit also says no actionable comments were generated. Could you point me to the specific suggested change you want addressed? |
|
The CodeRabbit “Generate unit tests” item appears to be an optional beta suggestion rather than an actionable review comment, the PR already includes a regression unit test for If there is another specific suggested change you meant, please point me to it and I’ll address it. |
could you see it now? |
I think the only visible item is CodeRabbit’s optional “Generate unit tests (beta)” checkbox. That is not an actionable review comment, and this PR already includes a regression unit test for the Cal.diy iCalUID case. Let me know if I am missing something |
|
Hi @kartik-212004 , let me know what are the changes to be done ? |
Summary
Fixes #29575
Calendar subscription sync now accepts Cal-managed iCalUID suffixes instead of only accepting
@cal.com. This preserves legacy@cal.comevents while allowing default Cal.diy-generated UIDs such asbookingUid@Cal.diyto flow through cancellation and reschedule sync.Root Cause
Cal.diy generates fallback iCalUIDs from
APP_NAME, which defaults toCal.diy.CalendarSyncService.handleEventsfiltered incoming subscription events with an@cal.com-only suffix check, so valid default Cal.diy booking events were skipped before the booking repository was queried.Changes
cal.com, defaultcal.diy, and the configuredAPP_NAME.test-booking-uid@Cal.diy.@external.comignored.Testing
yarn vitest run packages/features/calendar-subscription/lib/sync/__tests__/CalendarSyncService.test.ts- 21 tests passed