fix: event is not added to outlook cal through workflow ics file#24249
fix: event is not added to outlook cal through workflow ics file#24249anikdhabal merged 1 commit intomainfrom
Conversation
WalkthroughThe change updates ICS calendar attachment metadata across three modules. In packages/emails/lib/generateIcsFile.ts, the returned attachment no longer includes type and disposition fields; a method: "REQUEST" field is introduced. In packages/features/ee/workflows/api/scheduleEmailReminders.ts and packages/features/ee/workflows/lib/reminders/emailReminderManager.ts, attachment objects drop type, disposition, and contentId, keeping only method: "REQUEST". Control flow and other fields remain unchanged. No exported/public API changes are declared. Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/features/ee/workflows/api/scheduleEmailReminders.ts (1)
1-3: Consider documenting the migration timeline.This file is marked as deprecated in favor of SMTP with tasker. Consider adding a comment about when this deprecated code will be removed and ensuring the replacement implementation includes the same Outlook ICS fix.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (3)
packages/emails/lib/generateIcsFile.ts(1 hunks)packages/features/ee/workflows/api/scheduleEmailReminders.ts(1 hunks)packages/features/ee/workflows/lib/reminders/emailReminderManager.ts(1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.ts
📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
**/*.ts: For Prisma queries, only select data you need; never useinclude, always useselect
Ensure thecredential.keyfield is never returned from tRPC endpoints or APIs
Files:
packages/features/ee/workflows/lib/reminders/emailReminderManager.tspackages/emails/lib/generateIcsFile.tspackages/features/ee/workflows/api/scheduleEmailReminders.ts
**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Flag excessive Day.js use in performance-critical code; prefer native Date or Day.js
.utc()in hot paths like loops
Files:
packages/features/ee/workflows/lib/reminders/emailReminderManager.tspackages/emails/lib/generateIcsFile.tspackages/features/ee/workflows/api/scheduleEmailReminders.ts
**/*.{ts,tsx,js,jsx}
⚙️ CodeRabbit configuration file
Flag default exports and encourage named exports. Named exports provide better tree-shaking, easier refactoring, and clearer imports. Exempt main components like pages, layouts, and components that serve as the primary export of a module.
Files:
packages/features/ee/workflows/lib/reminders/emailReminderManager.tspackages/emails/lib/generateIcsFile.tspackages/features/ee/workflows/api/scheduleEmailReminders.ts
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Install dependencies / Yarn install & cache
🔇 Additional comments (3)
packages/features/ee/workflows/lib/reminders/emailReminderManager.ts (1)
251-263: LGTM! Attachment structure is consistent with the fix.The simplified attachment structure aligns with the changes in
generateIcsFile.ts, removing explicit MIME metadata in favor of themethod: "REQUEST"field. This should help Outlook properly recognize the ICS file as a calendar event.packages/features/ee/workflows/api/scheduleEmailReminders.ts (1)
344-352: LGTM – ICS attachments withmethod: "REQUEST"are forwarded in both SendGrid and SMTP pathways.packages/emails/lib/generateIcsFile.ts (1)
32-40: Rely on Nodemailer’s icalEvent option for RFC-compliant text/calendar;method=REQUEST—no manual MIME metadata needed.
E2E results are ready! |
What does this PR do?
event is not added to outlook cal through workflow ics file