Skip to content

Conversation

michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented Oct 13, 2025

Resolves #18729

Summary by CodeRabbit

  • New Features

    • Improved “Find Email” action: better handling of search queries (supports quoted searches) and more consistent multi-result retrieval with pagination.
  • Documentation

    • Clarified Search field examples with quoted query samples in the UI.
  • Chores

    • Version updates across multiple Microsoft Outlook actions and event sources.
    • Bumped the Microsoft Outlook package version.

Copy link

vercel bot commented Oct 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
pipedream-docs Ignored Ignored Oct 13, 2025 8:51pm
pipedream-docs-redirect-do-not-edit Ignored Ignored Oct 13, 2025 8:51pm

Copy link
Contributor

coderabbitai bot commented Oct 13, 2025

Walkthrough

Incremented versions across multiple Microsoft Outlook actions and sources, updated package version, and modified find-email action logic to handle quoted $search and pagination. Updated app description to show quoted search examples. No other logic changes outside find-email.

Changes

Cohort / File(s) Change summary
Find email logic update
components/microsoft_outlook/actions/find-email/find-email.mjs
Version 0.0.12→0.0.13. Added ensureQuotes(str). Reworked run to branch on this.search, quote $search, paginate/filter when no search, collect emails array, and summarize results.
App description text
components/microsoft_outlook/microsoft_outlook.app.mjs
Updated Search field description to show escaped, quoted examples; no logic changes.
Action version bumps
components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs, .../approve-workflow/approve-workflow.mjs, .../create-contact/create-contact.mjs, .../create-draft-email/create-draft-email.mjs, .../download-attachment/download-attachment.mjs, .../find-contacts/find-contacts.mjs, .../find-shared-folder-email/find-shared-folder-email.mjs, .../list-contacts/list-contacts.mjs, .../list-folders/list-folders.mjs, .../list-labels/list-labels.mjs, .../move-email-to-folder/move-email-to-folder.mjs, .../remove-label-from-email/remove-label-from-email.mjs, .../reply-to-email/reply-to-email.mjs, .../send-email/send-email.mjs, .../update-contact/update-contact.mjs
Version string increments only; no logic changes.
Source version bumps
components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs, .../new-contact/new-contact.mjs, .../new-email-in-shared-folder/new-email-in-shared-folder.mjs, .../new-email/new-email.mjs
Version string increments only; no logic changes.
Package version bump
components/microsoft_outlook/package.json
Version 1.7.2→1.7.3; metadata only.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor U as User/Tool Caller
  participant A as Outlook Find Email Action
  participant G as Microsoft Graph API

  U->>A: Invoke find-email (search, filters, paging)
  alt search provided
    A->>A: ensureQuotes(search)
    A->>G: GET /messages?$search="query"&$top=N
    G-->>A: Messages[]
  else no search
    loop paginate until done
      A->>G: GET /messages?$filter=...&$orderby=...&$top=N&$skip=...
      G-->>A: Page of Messages[]
      A->>A: accumulate emails
    end
  end
  A-->>U: Collected emails + summary
  note over A,U: Logic updated to always collect array results
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • luancazarine
  • jcortes

Poem

A hop, a quote, a search I wield,
I bound through inbox, field by field.
I wrap with "marks" and fetch the thread,
Paginate paths where carrots led.
Versions rise—thump-thump, all clear—
Your Outlook’s fixed; I twitch an ear. 🥕🐇

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Out of Scope Changes Check ⚠️ Warning This pull request includes version bumps for numerous Microsoft Outlook actions and sources along with a package version update which are unrelated to the specific Find Email bug fix objectives outlined in issue #18729. Please remove or isolate unrelated version bump changes into a separate release pull request so that this pull request focuses solely on the Find Email bug fix and related documentation updates.
Description Check ⚠️ Warning The pull request description only includes a reference to the resolved issue and does not follow the repository’s required template or provide contextual information such as the reason for the change under the “WHY” section. Please update the pull request description to follow the repository template by adding a “## WHY” section that explains the rationale and context for the bug fix, along with any relevant details or design considerations.
✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The title succinctly identifies the primary change as a bug fix for the Microsoft Outlook Find Email action, making it immediately clear to reviewers what the pull request aims to address.
Linked Issues Check ✅ Passed The changes to the Find Email action add the ensureQuotes utility and properly wrap search parameters in quotes, and the UI description for the Search field is updated to emphasize quotes as required by the Microsoft Graph API, directly addressing the bug described in issue #18729.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ 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 issue-18729

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.

@michelle0927 michelle0927 marked this pull request as ready for review October 13, 2025 20:51
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: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7f84b6d and 043dbf4.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 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 (1 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)
🧰 Additional context used
🧬 Code graph analysis (1)
components/microsoft_outlook/actions/find-email/find-email.mjs (1)
components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs (2)
  • emails (77-77)
  • items (62-75)
⏰ 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: Lint Code Base
  • GitHub Check: Verify TypeScript components
🔇 Additional comments (18)
components/microsoft_outlook/actions/find-contacts/find-contacts.mjs (1)

6-6: LGTM!

Version bump is appropriate for this coordinated release.

components/microsoft_outlook/sources/new-email/new-email.mjs (1)

10-10: LGTM!

Version bump is appropriate for this coordinated release.

components/microsoft_outlook/actions/reply-to-email/reply-to-email.mjs (1)

7-7: LGTM!

Version bump is appropriate for this coordinated release.

components/microsoft_outlook/actions/send-email/send-email.mjs (1)

7-7: LGTM!

Version bump is appropriate for this coordinated release.

components/microsoft_outlook/actions/list-labels/list-labels.mjs (1)

7-7: LGTM!

Version bump is appropriate for this coordinated release.

components/microsoft_outlook/sources/new-contact/new-contact.mjs (1)

8-8: LGTM!

Version bump is appropriate for this coordinated release.

components/microsoft_outlook/actions/approve-workflow/approve-workflow.mjs (1)

7-7: LGTM!

Version bump is appropriate for this coordinated release.

components/microsoft_outlook/actions/add-label-to-email/add-label-to-email.mjs (1)

8-8: LGTM!

Version bump is appropriate for this coordinated release.

components/microsoft_outlook/actions/list-contacts/list-contacts.mjs (1)

6-6: LGTM! Version bump is appropriate.

The version increment from 0.0.18 to 0.0.19 is consistent with the coordinated release across Microsoft Outlook components.

components/microsoft_outlook/microsoft_outlook.app.mjs (1)

241-241: Excellent clarification of the quote requirement.

The updated description now explicitly shows that search queries must be wrapped in double quotes (e.g., "to:example@example.com", "subject:example", "pizza"). This directly addresses the issue where LLMs would omit quotes and cause errors when using the Microsoft Graph API search parameter.

components/microsoft_outlook/actions/list-folders/list-folders.mjs (1)

7-7: LGTM! Version bump is appropriate.

The version increment is consistent with the coordinated release across Microsoft Outlook components.

components/microsoft_outlook/actions/remove-label-from-email/remove-label-from-email.mjs (1)

7-7: LGTM! Version bump is appropriate.

The version increment is consistent with the coordinated release across Microsoft Outlook components.

components/microsoft_outlook/sources/new-email-in-shared-folder/new-email-in-shared-folder.mjs (1)

9-9: LGTM! Version bump is appropriate.

The version increment is consistent with the coordinated release across Microsoft Outlook components.

components/microsoft_outlook/actions/update-contact/update-contact.mjs (1)

6-6: LGTM! Version bump is appropriate.

The version increment is consistent with the coordinated release across Microsoft Outlook components.

components/microsoft_outlook/actions/find-shared-folder-email/find-shared-folder-email.mjs (1)

7-7: LGTM! Version bump is appropriate.

The version increment is consistent with the coordinated release. This action will also benefit from the updated search parameter description in the app file, which now clarifies the quote requirement.

components/microsoft_outlook/actions/move-email-to-folder/move-email-to-folder.mjs (1)

7-7: LGTM! Version bump is appropriate.

The version increment is consistent with the coordinated release across Microsoft Outlook components.

components/microsoft_outlook/actions/find-email/find-email.mjs (2)

7-7: LGTM!

Version bump is appropriate for this bug fix.


46-52: LGTM! The quote normalization handles the main use cases correctly.

The ensureQuotes method successfully addresses the PR objective by ensuring the search parameter is properly quoted for the Microsoft Graph API. The implementation correctly handles common cases like unquoted strings, single-quoted strings, and double-quoted strings.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] bug in microsoft_outlook-find-email tool

1 participant