Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented Sep 12, 2025

Resolves #18149

Summary by CodeRabbit

  • New Features
    • Site selection now lists all SharePoint sites (not just followed), making it easier to find and connect to the right site.
  • Chores
    • Updated SharePoint package version.
    • Upgraded a platform dependency for compatibility.
    • Incremented version numbers for SharePoint actions and sources (Create List, Create Item, Update Item, Download File, New List Item, Updated List Item).

Copy link

vercel bot commented Sep 12, 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 Sep 12, 2025 7:01pm
pipedream-docs-redirect-do-not-edit Ignored Ignored Sep 12, 2025 7:01pm

Copy link
Contributor

coderabbitai bot commented Sep 12, 2025

Walkthrough

Updates the SharePoint component: bumps package and several action/source versions; updates dependency on @pipedream/platform; adds a new listAllSites method and switches siteId async options to use it instead of listSites.

Changes

Cohort / File(s) Summary
SharePoint app method update
components/sharepoint/sharepoint.app.mjs
Adds listAllSites(args = {}) calling GET /sites?search=*; siteId async options now use listAllSites instead of listSites.
Package and dependency bump
components/sharepoint/package.json
Version 0.3.20.3.3; updates dependency @pipedream/platform ^3.0.3^3.1.0.
Action version bumps
components/sharepoint/actions/create-item/create-item.mjs, .../create-list/create-list.mjs, .../download-file/download-file.mjs, .../update-item/update-item.mjs
Metadata-only version bumps: create-item 0.0.40.0.5; create-list 0.0.40.0.5; download-file 0.0.30.0.4; update-item 0.0.30.0.4. No logic changes.
Source version bumps
components/sharepoint/sources/new-list-item/new-list-item.mjs, .../updated-list-item/updated-list-item.mjs
Metadata-only version bumps: both 0.0.40.0.5. No logic changes.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor U as User
  participant W as Workflow UI
  participant S as SharePoint App
  participant G as Microsoft Graph API

  U->>W: Open site selector (siteId)
  W->>S: Fetch async options
  note right of S: New behavior: use listAllSites()
  S->>G: GET /sites?search=*
  G-->>S: 200 OK • List of sites
  S-->>W: Mapped options
  W-->>U: Display sites
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks (3 passed, 2 warnings)

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Out of Scope Changes Check ⚠️ Warning While the functional change to site listing is in-scope for #18149, the PR also contains multiple independent version string bumps across actions/sources and a dependency upgrade in components/sharepoint/package.json that are not required to fix the bug and could introduce unrelated changes or risks. Isolate or justify the metadata/version bumps and the @pipedream/platform dependency upgrade by moving them to a separate release PR or by documenting why they are bundled here, and ensure CI and integration tests pass before merging.
Description Check ⚠️ Warning The current description contains only "Resolves #18149" and does not follow the repository's required template which expects a "WHY" section; it lacks rationale, a short summary of what changed, and verification or testing instructions, so it is incomplete for reviewers. Please update the PR description to include the "WHY" section with a brief rationale for the change, a concise summary of code changes (e.g., siteId options now call listAllSites and a new listAllSites method was added; package.json dependency bump), a link to the linked issue, and suggested verification steps so reviewers can validate the fix.
✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The title "Sharepoint - update siteId prop" is concise and directly related to the main functional change in this PR (the siteId async prop options were updated to use a new listAllSites method and a corresponding method was added), so it clearly signals the primary intent to reviewers scanning history.
Linked Issues Check ✅ Passed The PR implements switching the siteId async options to use listAllSites and adds a listAllSites method that queries sites (via /sites?search=*), which directly addresses the linked issue #18149's symptom of site lists not populating for first-time sign‑ups; the code change targets the reported bug while other edits are metadata version bumps.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Poem

I hop through fields of sites anew,
From followed few to “search the slew.”
With version bumps and tidy code,
The lists now load—unlocked the road.
Thump-thump! I cheer, ears up, eyes bright—
All sites in view, the workflow’s light. 🐇✨

✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch issue-18149

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.

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 (2)
components/sharepoint/sharepoint.app.mjs (2)

17-23: Switching siteId options to listAllSites fixes first-time user empty state.

Good call replacing followed sites with a tenant-wide site search; this should resolve #18149 for new users with no followed sites.

Consider a label fallback to avoid blank option labels when displayName is missing:

-        const options = response.value?.map(({ id: value, displayName: label }) => ({ value, label })) || [];
+        const options = response.value?.map(({ id: value, displayName, webUrl }) => ({
+          value,
+          label: displayName || webUrl || value,
+        })) || [];

208-213: listAllSites implementation works; minor robustness/perf tweak suggested.

Current path embedding ?search=* is fine. Optional: accept a search param and add $select to reduce payload.

Apply:

-    listAllSites(args = {}) {
-      return this._makeRequest({
-        path: "/sites?search=*",
-        ...args,
-      });
-    },
+    listAllSites({ search = "*", params = {}, ...args } = {}) {
+      return this._makeRequest({
+        path: "/sites",
+        params: { search, $select: "id,displayName,webUrl", ...params },
+        ...args,
+      });
+    },

This keeps paging via args.url working and trims response size.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 194d1ef and 24b622b.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • components/sharepoint/actions/create-item/create-item.mjs (1 hunks)
  • components/sharepoint/actions/create-list/create-list.mjs (1 hunks)
  • components/sharepoint/actions/download-file/download-file.mjs (1 hunks)
  • components/sharepoint/actions/update-item/update-item.mjs (1 hunks)
  • components/sharepoint/package.json (2 hunks)
  • components/sharepoint/sharepoint.app.mjs (2 hunks)
  • components/sharepoint/sources/new-list-item/new-list-item.mjs (1 hunks)
  • components/sharepoint/sources/updated-list-item/updated-list-item.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). (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Lint Code Base
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
🔇 Additional comments (8)
components/sharepoint/sources/updated-list-item/updated-list-item.mjs (1)

8-8: Version bump looks good.

No runtime changes. This source will automatically benefit from the new siteId options in the app.

components/sharepoint/actions/create-item/create-item.mjs (1)

7-7: Version bump acknowledged.

No behavioral changes in this action.

components/sharepoint/actions/download-file/download-file.mjs (1)

8-8: Version bump acknowledged.

No behavioral changes introduced here.

components/sharepoint/actions/update-item/update-item.mjs (1)

8-8: Version bump acknowledged.

No behavioral changes in this action.

components/sharepoint/package.json (1)

3-3: Package + platform bump: verify axios + auth semantics for @pipedream/platform ^3.1.0

  • platform/package.json is v3.1.0 and many components already target ^3.1.0.
  • components/sharepoint has no axios(...) matches in the scan; still confirm any HTTP/auth code:
    • uses import { axios } from "@pipedream/platform" (see packages/prompts/src/index.ts / components/browserless/browserless.app.mjs),
    • does not assume response is in res.data (platform axios returns the response body directly unless config.returnFullResponse = true),
    • and that any auth helpers/APIs used by the component are compatible with platform v3.1.0.
components/sharepoint/sources/new-list-item/new-list-item.mjs (1)

8-8: Version bump looks good.

No logic changes. This source will pick up the new siteId options from the app.

components/sharepoint/actions/create-list/create-list.mjs (1)

7-7: Version bump acknowledged.

No behavioral changes in this action.

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

12-30: Confirm Graph scopes allow listing SharePoint sites

Listing /sites?search=* can require Sites.Read.All (delegated or application) with admin consent — verify the app registration's OAuth scopes/consent. Repo grep returned no hits for "Sites.Read" or "scope"; manual verification required: open the SharePoint action, expand the Site selector, and confirm sites load with pagination on a fresh account.

Copy link
Collaborator

@jcortes jcortes left a 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!

@vunguyenhung vunguyenhung merged commit 445f5f9 into master Sep 14, 2025
10 checks passed
@vunguyenhung vunguyenhung deleted the issue-18149 branch September 14, 2025 14:40
sergio-eliot-rodriguez pushed a commit to sergio-eliot-rodriguez/sergio_wong_does_pipedream that referenced this pull request Sep 21, 2025
* update siteId prop

* pnpm-lock.yaml

* package.json version
vunguyenhung added a commit that referenced this pull request Sep 24, 2025
* Leonardo AI components

* added unzoom image action

* fixing link errors

* more lint fixes

* Merging pull request #18359

* fix: pagination prop and params struct

* fix: no need for paginate here

* chore: update version

* chore: cleanup

* chore: update package

* feat: allow raw response

* chore: bump package

* fix: buffer response instead

* Update components/google_drive/actions/download-file/download-file.mjs

Co-authored-by: Jorge Cortes <[email protected]>

* versions

* pnpm-lock.yaml

* pnpm-lock.yaml

* pnpm-lock.yaml

* feat: add content selector

* chore: bump package

* fix: comments

* chore: bump versions

* chore: fix versions

* fixes: QA fixes

* feat: add cursor to req

* package.json

---------

Co-authored-by: joao <[email protected]>
Co-authored-by: joaocoform <[email protected]>
Co-authored-by: Jorge Cortes <[email protected]>
Co-authored-by: Michelle Bergeron <[email protected]>
Co-authored-by: Luan Cazarine <[email protected]>

* Merging pull request #18361

* update siteId prop

* pnpm-lock.yaml

* package.json version

* Google Sheets - update row refresh fields  (#18369)

* change prop order and refresh fields

* bump package.json

* Pipedrive - fix app name (#18370)

* use pipedriveApp instead of app

* bump package.json

* Pipedrive - pipelineId integer (#18372)

* pipelineId - integer

* bump versions

* Adding app scaffolding for lightspeed_ecom_c_series

* Adding app scaffolding for financial_data

* Adding app scaffolding for microsoft_authenticator

* Merging pull request #18345

* updates

* versions

* versions

* Merging pull request #18368

* updates

* remove console.log

* versions

* Coinbase Developer Platform - New Wallet Event (#18342)

* new component

* pnpm-lock.yaml

* updates

* updates

* Hubspot - update search-crm (#18360)

* update search-crm

* limit results to one page

* update version

* package.json version

* Merging pull request #18347

* widget props

* fix version

* Adding app scaffolding for rundeck

* Merging pull request #18378

* Update Taiga component with new actions and sources

- Bump version to 0.1.0 in package.json and add dependency on @pipedream/platform.
- Introduce new actions for creating, updating, and deleting issues, tasks, and user stories.
- Add sources for tracking changes and deletions of issues and tasks.
- Implement utility functions for parsing and cleaning objects in common/utils.mjs.
- Enhance prop definitions for better integration with Taiga API.

* pnpm update

* Refactor Taiga actions to utilize parseObject utility

- Added parseObject utility for tags, watchers, and points in update-issue, update-task, and update-userstory actions.
- Removed the update-project action as it is no longer needed.
- Enhanced base source to include secret key validation for webhook security.

* Merging pull request #18382

* add testSources prop

* pnpm-lock.yaml

* fix

* Merging pull request #18323

* Added actions

* Added actions

* Added actions

* Merging pull request #18377

* Added actions

* Update components/weaviate/actions/create-class/create-class.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Luan Cazarine <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Merging pull request #18376

* Adding app scaffolding for etrusted

* Adding app scaffolding for intelliflo_office

* Adding app scaffolding for thoughtspot

* Adding app scaffolding for kordiam

* Adding app scaffolding for ticketsauce

* trustpilot fixes (#18152)

* trustpilot fixes

* more fixes

* update versions

* more version updates

* fixes

* Bump all Trustpilot actions to version 0.1.0

Major improvements and API updates across all actions:
- Enhanced private API support with proper authentication
- Improved parameter handling and validation
- Better error handling and response structures
- Added new conversation flow for product reviews
- Fixed endpoint URLs to match latest API documentation
- Streamlined request/response processing

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>

* up version and clean up sources

* merge

* fix business ID

* delete temp action

* Update components/trustpilot/sources/new-product-reviews/new-product-reviews.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update components/trustpilot/sources/new-product-reviews/new-product-reviews.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update components/trustpilot/sources/new-product-reviews/new-product-reviews.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update components/trustpilot/sources/new-service-reviews/new-service-reviews.mjs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* comments

* Pagination

* fixes

* comments

* missed some `$`'s

* unduplicated

* more fixes

* final comments

* more comments

* .

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Adding app scaffolding for peekalink

* 18314 twilio (#18350)

* Update Twilio component versions and dependencies

- Update Twilio Send Message action adding detailed description for 'from' prop and refactoring phone number validation logic.
- Incremented action versions for several Twilio actions.

* pnpm update

* Updating LinkedIn API version (#18399)

* Merging pull request #18394

* Databricks API - Jobs action components (#18371)

* Notion property building improvements (#18381)

* validate property types

* versions

* Google Business - add debug log (#18407)

* add debug log

* bump versions

* Notion API Key - update @pipedream/notion version (#18409)

* update @pipedream/notion dependency version

* pnpm-lock.yaml

* Adding app scaffolding for reduct_video

* Adding app scaffolding for shopware

* Adding app scaffolding for instamojo

* Hubspot - bug fix to sources w/ property changes (#18379)

* updates

* versions

* Google sheets type fix (#18411)

* Fixing worksheetId prop type from string to integer

* Version bumps

---------

Co-authored-by: Leo Vu <[email protected]>

* Merging pull request #18393

* new components

* remove console.log

* versions

* update

* Merging pull request #18408

* 403 error message

* versions

* update

* Merging pull request #18419

* Changes per PR Review

* Removes leonardo_ai_actions.mdc not indented for merging

* synced lockfile after install

* fully lock form-data for leonardo_ai

* conflict solving

* lint fixes

* Chipped down Readme, implemented async options in gen motion

---------

Co-authored-by: jocarino <[email protected]>
Co-authored-by: joao <[email protected]>
Co-authored-by: joaocoform <[email protected]>
Co-authored-by: Jorge Cortes <[email protected]>
Co-authored-by: Michelle Bergeron <[email protected]>
Co-authored-by: Luan Cazarine <[email protected]>
Co-authored-by: michelle0927 <[email protected]>
Co-authored-by: Andrew Chuang <[email protected]>
Co-authored-by: danhsiung <[email protected]>
Co-authored-by: Lucas Caresia <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Job <[email protected]>
Co-authored-by: Claude <[email protected]>
Co-authored-by: Guilherme Falcão <[email protected]>
Co-authored-by: Leo Vu <[email protected]>
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] Sharepoint Site List Error
3 participants