Skip to content

Conversation

@alexpareto
Copy link
Contributor

@alexpareto alexpareto commented Nov 20, 2025

WHY

Summary by CodeRabbit

  • New Features

    • Added query-based user search functionality in the userId field, enabling real-time filtering and improved user discovery.
  • Chores

    • Version updates across multiple Microsoft Outlook components and actions; main package version incremented from 1.7.6 to 1.7.7.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Nov 20, 2025

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

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
pipedream-docs-redirect-do-not-edit Ignored Ignored Nov 21, 2025 8:57pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 20, 2025

Walkthrough

Version bumps applied across 16 action modules and 4 source modules in the Microsoft Outlook component, plus package.json updated from 1.7.6 to 1.7.7. Additionally, the app module enhanced to support query-based user lookups and dynamic header merging functionality.

Changes

Cohort / File(s) Summary
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-email/find-email.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
Incremented version field across all modules; versions bumped by 0.0.1 (e.g., 0.0.19 → 0.0.20)
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
Incremented version field across all source modules; versions bumped by 0.0.1 (e.g., 0.1.5 → 0.1.6)
App module enhancements
components/microsoft_outlook/microsoft_outlook.app.mjs
Added query-based user lookup support via useQuery: true and options({ query }) in propDefinitions.userId; enhanced _getHeaders(headers) to accept and merge optional headers parameter
Package version bump
components/microsoft_outlook/package.json
Updated version field from 1.7.6 to 1.7.7

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant UI as UI/Form
    participant App as microsoft_outlook.app
    participant API as Microsoft Graph API

    rect rgb(240, 248, 255)
    note over User,API: Query-Based User Lookup (New)
    User->>UI: Enters search query
    UI->>App: options({ query })
    App->>App: Construct search params<br/>+ ConsistencyLevel header
    App->>API: listUsers(searchParams)
    API-->>App: Users matching query
    App->>App: Map to value/label
    App-->>UI: Display results
    end

    rect rgb(255, 250, 240)
    note over User,API: Non-Query Lookup (Default)
    User->>UI: Triggers user selection<br/>(no query)
    UI->>App: options({ })
    App->>API: listUsers()
    API-->>App: All users
    App->>App: Map to value/label
    App-->>UI: Display results
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • The majority of changes are homogeneous version bumps following a consistent pattern across 20 files, requiring minimal review per occurrence
  • The microsoft_outlook.app.mjs changes are straightforward functional additions (query parameter handling and header merging) with clear intent and limited scope
  • Specific areas to review:
    • microsoft_outlook.app.mjs: Verify query parameter is correctly passed to listUsers(), header merging logic handles edge cases (null/undefined headers), and ConsistencyLevel header is only set when query is present
    • All version bump files: Confirm version strings are correctly formatted and incremented consistently

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is entirely incomplete, with the 'WHY' section left as an unfilled template placeholder. Complete the 'WHY' section to explain the purpose, motivation, and rationale for the changes made in this pull request.
Title check ❓ Inconclusive The title is vague and generic, using non-descriptive phrasing that doesn't convey meaningful information about the changeset. Clarify the title to describe the main changes, such as 'Add query-based user lookup and dynamic header merging to microsoft_outlook app' or similar.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@pipedream-component-development
Copy link
Collaborator

Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified.

@pipedream-component-development
Copy link
Collaborator

Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:

@michelle0927 michelle0927 marked this pull request as ready for review November 21, 2025 20:58
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

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/microsoft_outlook.app.mjs (1)

198-218: Critical: Incorrect URL encoding breaks Microsoft Graph API search syntax.

Line 203 encodes the entire search term including the property name and colon (encodeURIComponent("displayName:" + query)), which causes double-encoding when passed to the HTTP client. Microsoft Graph API's $search parameter expects the format property:value with Boolean operators, and encoding the colon as %3A breaks the expected syntax.

Apply this diff to fix the search query construction:

-              $search: `"${encodeURIComponent("displayName:" + query)}" OR "${encodeURIComponent("mail:" + query)}" OR "${encodeURIComponent("userPrincipalName:" + query)}"`,
+              $search: `"displayName:${encodeURIComponent(query)}" OR "mail:${encodeURIComponent(query)}" OR "userPrincipalName:${encodeURIComponent(query)}"`,

This ensures only the user-provided query value is encoded while preserving the unencoded property:value syntax required by the API.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6f9a2f5 and aec01ed.

📒 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 (1 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 (2 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: Verify TypeScript components
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Lint Code Base
🔇 Additional comments (21)
components/microsoft_outlook/actions/find-contacts/find-contacts.mjs (1)

6-6: Version bump looks consistent

Action version updated to "0.0.20" only; format and progression are consistent with the rest of the Outlook actions in this PR.

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

7-7: Version metadata increment is fine

The action version bump to "0.0.5" is isolated and consistent with the PR’s version-update pattern.

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

6-6: Contact action version bump is appropriate

"0.0.20" continues the existing scheme and is the only change in this file; safe to ship.

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

7-7: Label-removal action version updated correctly

Version moved to "0.0.13" with no behavioral diffs; aligns with neighboring label actions in this PR.

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

7-7: List Folders version bump is straightforward

Updating to "0.0.11" only affects metadata; no risk to runtime behavior.

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

8-8: Add-label action version increment is consistent

Version set to "0.0.13" with no other modifications; consistent with related label actions.

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

6-6: List Contacts version bump is aligned

Metadata version updated to "0.0.20" only; aligns with other contact-related actions and looks good.

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

7-7: Approve Workflow action version updated safely

Changing the version to "0.0.11" is purely metadata and consistent with other action bumps.

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

7-7: Version bump applied correctly.

The patch version increment from 0.0.20 to 0.0.21 is consistent with the coordinated version updates across this PR.

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

7-7: Version bump applied correctly.

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

7-7: Version bump applied correctly.

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

6-6: Version bump applied correctly.

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

8-8: Version bump applied correctly.

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

10-10: Version bump applied correctly.

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

7-7: Version bump applied correctly.

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

7-7: LGTM! Version bump aligns with package update.

The version increment is consistent with the broader package release (1.7.7).

components/microsoft_outlook/package.json (1)

3-3: LGTM! Package version increment for release.

The version bump from 1.7.6 to 1.7.7 aligns with the coordinated updates across action and source modules.

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

10-10: LGTM! Version bump aligns with package update.

The version increment is consistent with the broader package release.

components/microsoft_outlook/actions/create-draft-email/create-draft-email.mjs (1)

7-7: LGTM! Version bump aligns with package update.

The version increment is consistent with the broader package release.

components/microsoft_outlook/sources/new-attachment-received/new-attachment-received.mjs (1)

9-9: LGTM! Version bump aligns with package update.

The version increment is consistent with the broader package release.

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

272-278: LGTM! Header merging implementation is correct.

The optional headers parameter and spread-merge pattern properly support dynamic header injection, enabling the ConsistencyLevel header required for user search queries.

@vunguyenhung
Copy link
Collaborator

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

Labels

User submitted Submitted by a user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Allow Search in Outlook List Users Configured Props

5 participants