-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Microsoft Outlook - update find-email #19146
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
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Pre-merge checks and finishing touches❌ Failed checks (2 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-09-15T22:01:17.593ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (8)
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs (1)
67-80: Consider branching logic to matchfind-email.mjsimplementation.Unlike
find-email.mjs(lines 61-87), this implementation doesn't branch based on whethersearchis provided. Instead, it passes all three parameters ($search,$filter,$orderby) to the paginate function regardless. While undefined values may be filtered by the underlying method, explicit branching would:
- Make the implementation consistent with
find-email.mjs- Clarify the mutually-exclusive nature of these query modes
- Avoid potential issues if the underlying method behavior changes
Consider refactoring to match the pattern in
find-email.mjs:async run({ $ }) { if (this.search && (this.filter || this.orderBy)) { throw new ConfigurationError("`$search` not supported when using `$filter` or `$orderby`."); } + let params; + if (this.search) { + params = { + "$search": this.search, + }; + } else { + params = { + "$filter": this.filter, + "$orderby": this.orderBy, + }; + } + const items = this.microsoftOutlook.paginate({ fn: this.microsoftOutlook.listSharedFolderMessages, args: { $, userId: this.userId, sharedFolderId: this.sharedFolderId, - params: { - "$search": this.search, - "$filter": this.filter, - "$orderby": this.orderBy, - }, + params, }, max: this.maxResults, });
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (22)
components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs(1 hunks)components/microsoft_outlook/actions/approve-workflow/approve-workflow.mjs(1 hunks)components/microsoft_outlook/actions/create-contact/create-contact.mjs(1 hunks)components/microsoft_outlook/actions/create-draft-email/create-draft-email.mjs(1 hunks)components/microsoft_outlook/actions/download-attachment/download-attachment.mjs(1 hunks)components/microsoft_outlook/actions/find-contacts/find-contacts.mjs(1 hunks)components/microsoft_outlook/actions/find-email/find-email.mjs(2 hunks)components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs(2 hunks)components/microsoft_outlook/actions/list-contacts/list-contacts.mjs(1 hunks)components/microsoft_outlook/actions/list-folders/list-folders.mjs(1 hunks)components/microsoft_outlook/actions/list-labels/list-labels.mjs(1 hunks)components/microsoft_outlook/actions/move-email-to-folder/move-email-to-folder.mjs(1 hunks)components/microsoft_outlook/actions/remove-label-from-email/remove-label-from-email.mjs(1 hunks)components/microsoft_outlook/actions/reply-to-email/reply-to-email.mjs(1 hunks)components/microsoft_outlook/actions/send-email/send-email.mjs(1 hunks)components/microsoft_outlook/actions/update-contact/update-contact.mjs(1 hunks)components/microsoft_outlook/microsoft_outlook.app.mjs(1 hunks)components/microsoft_outlook/package.json(1 hunks)components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs(1 hunks)components/microsoft_outlook/sources/new-contact/new-contact.mjs(1 hunks)components/microsoft_outlook/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs(1 hunks)components/microsoft_outlook/sources/new-email/new-email.mjs(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Publish TypeScript components
- GitHub Check: Verify TypeScript components
- GitHub Check: Lint Code Base
🔇 Additional comments (25)
components/microsoft_outlook/microsoft_outlook.app.mjs (3)
238-243: Clear constraint documentation for$searchparameter.The description now explicitly states incompatibilities with both
$filterand$orderby, which directly addresses the issue and will help LLMs avoid constructing invalid queries. The formatting and wording are clear.
244-249: Consistent bidirectional constraint documentation for$filter.The description now states the incompatibility with
$search, maintaining consistency with the search parameter's documentation. This ensures users understand the restriction from both directions.
250-255: Consistent bidirectional constraint documentation for$orderBy.The description now states the incompatibility with
$search, maintaining consistency across all three interdependent parameters. The constraint documentation is complete and properly formatted.components/microsoft_outlook/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs (1)
10-10: LGTM: Version bump is appropriate.The version increment aligns with the broader release update across Microsoft Outlook integration components.
components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs (1)
9-9: LGTM: Version bump is appropriate.The version increment is consistent with the release update pattern across the PR.
components/microsoft_outlook/sources/new-email/new-email.mjs (1)
10-10: LGTM: Version bump is appropriate.The version increment is consistent with the broader release update.
components/microsoft_outlook/actions/send-email/send-email.mjs (1)
7-7: LGTM: Version bump is appropriate.The version increment aligns with the release update pattern.
components/microsoft_outlook/actions/reply-to-email/reply-to-email.mjs (1)
7-7: LGTM: Version bump is appropriate.The version increment is consistent with the broader release update.
components/microsoft_outlook/actions/remove-label-from-email/remove-label-from-email.mjs (1)
7-7: LGTM: Version bump is appropriate.The version increment aligns with the release update pattern.
components/microsoft_outlook/actions/download-attachment/download-attachment.mjs (1)
9-9: LGTM: Version bump is appropriate.The version increment is consistent with the broader release update.
components/microsoft_outlook/actions/list-labels/list-labels.mjs (1)
7-7: LGTM: Version bump is appropriate.The version increment aligns with the release update pattern.
components/microsoft_outlook/package.json (1)
3-3: LGTM: Package version bump is appropriate.The version increment from 1.7.6 to 1.7.7 is consistent with a patch release.
components/microsoft_outlook/actions/move-email-to-folder/move-email-to-folder.mjs (1)
7-7: LGTM: Version bump aligns with package release.The version increment is appropriate for a package-wide release with no functional changes to this action.
components/microsoft_outlook/actions/create-draft-email/create-draft-email.mjs (1)
7-7: LGTM: Version bump aligns with package release.The version increment is appropriate for a package-wide release with no functional changes to this action.
components/microsoft_outlook/actions/list-folders/list-folders.mjs (1)
7-7: LGTM: Version bump aligns with package release.The version increment is appropriate for a package-wide release with no functional changes to this action.
components/microsoft_outlook/actions/list-contacts/list-contacts.mjs (1)
6-6: LGTM: Version bump aligns with package release.The version increment is appropriate for a package-wide release with no functional changes to this action.
components/microsoft_outlook/sources/new-contact/new-contact.mjs (1)
8-8: LGTM: Version bump aligns with package release.The version increment is appropriate for a package-wide release with no functional changes to this source.
components/microsoft_outlook/actions/update-contact/update-contact.mjs (1)
6-6: LGTM: Version bump aligns with package release.The version increment is appropriate for a package-wide release with no functional changes to this action.
components/microsoft_outlook/actions/find-contacts/find-contacts.mjs (1)
6-6: LGTM: Version bump aligns with package release.The version increment is appropriate for a package-wide release with no functional changes to this action.
components/microsoft_outlook/actions/create-contact/create-contact.mjs (1)
6-6: LGTM: Standard version bump.The version increment aligns with other actions in this PR and contains no functional changes.
components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs (1)
8-8: LGTM: Standard version bump.The version increment aligns with other actions in this PR and contains no functional changes.
components/microsoft_outlook/actions/approve-workflow/approve-workflow.mjs (1)
7-7: LGTM: Standard version bump.The version increment aligns with other actions in this PR and contains no functional changes.
components/microsoft_outlook/actions/find-email/find-email.mjs (2)
55-57: LGTM: Validation correctly prevents invalid query combinations.The runtime check properly enforces the Microsoft Graph API constraint that
$searchcannot be combined with$filteror$orderby.
61-87: LGTM: Branching logic correctly separates search from filter/orderBy paths.The implementation properly routes requests to avoid sending conflicting query parameters to the API.
components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs (1)
63-65: LGTM: Validation correctly prevents invalid query combinations.The runtime check properly enforces the Microsoft Graph API constraint that
$searchcannot be combined with$filteror$orderby.
components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs
Show resolved
Hide resolved
luancazarine
left a comment
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.
Hi @michelle0927, LGTM! Ready for QA!
Resolves #19132
Summary by CodeRabbit
Bug Fixes
Documentation
Chores
✏️ Tip: You can customize this high-level summary in your review settings.