Skip to content

Comments

fix: event is not added to outlook cal through workflow ics file#24249

Merged
anikdhabal merged 1 commit intomainfrom
ics-file0fix
Oct 3, 2025
Merged

fix: event is not added to outlook cal through workflow ics file#24249
anikdhabal merged 1 commit intomainfrom
ics-file0fix

Conversation

@anikdhabal
Copy link
Contributor

@anikdhabal anikdhabal commented Oct 3, 2025

What does this PR do?

event is not added to outlook cal through workflow ics file

@graphite-app graphite-app bot requested a review from a team October 3, 2025 13:13
@keithwillcode keithwillcode added the core area: core, team members only label Oct 3, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 3, 2025

Walkthrough

The 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)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title concisely captures the primary change of fixing events not being added to the Outlook calendar via the workflow ICS file and directly corresponds to the adjustments made in the pull request.
Description Check ✅ Passed The pull request description identifies the specific issue—events not being added to Outlook calendars via the workflow ICS file—and directly relates to the changes in ICS attachment metadata shown in the diff, so it passes the relevance criteria despite its brevity.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ics-file0fix

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 and usage tips.

@dosubot dosubot bot added the 🐛 bug Something isn't working label Oct 3, 2025
@anikdhabal anikdhabal enabled auto-merge (squash) October 3, 2025 13:14
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

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.

📥 Commits

Reviewing files that changed from the base of the PR and between 3b92c86 and 839a0b6.

📒 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 use include, always use select
Ensure the credential.key field is never returned from tRPC endpoints or APIs

Files:

  • packages/features/ee/workflows/lib/reminders/emailReminderManager.ts
  • packages/emails/lib/generateIcsFile.ts
  • packages/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.ts
  • packages/emails/lib/generateIcsFile.ts
  • packages/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.ts
  • packages/emails/lib/generateIcsFile.ts
  • packages/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 the method: "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 with method: "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.

@anikdhabal anikdhabal merged commit 7adab1f into main Oct 3, 2025
100 of 105 checks passed
@anikdhabal anikdhabal deleted the ics-file0fix branch October 3, 2025 13:52
@github-actions
Copy link
Contributor

github-actions bot commented Oct 3, 2025

E2E results are ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working core area: core, team members only ready-for-e2e size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants