-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Google Docs - add tabIds prop to get-document #17574
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
WalkthroughThe changes introduce a new optional Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Action (get-document)
participant Google Docs API
User->>Action (get-document): Provide documentId, includeTabsContent, [tabIds]
Action (get-document)->>Google Docs API: Fetch document (with tabs if includeTabsContent)
Google Docs API-->>Action (get-document): Return document (with tabs)
alt tabIds provided & includeTabsContent true
Action (get-document)->>Action (get-document): Filter tabs by tabIds
else tabIds provided & includeTabsContent false
Action (get-document)->>User: Throw ConfigurationError
end
Action (get-document)-->>User: Return (filtered) document
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
components/google_docs/actions/get-document/get-document.mjsOops! Something went wrong! :( ESLint: 8.57.1 Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
components/google_docs/actions/get-document/get-document.mjs(2 hunks)components/google_docs/package.json(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
components/google_docs/package.json (1)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14935
File: components/sailpoint/package.json:15-18
Timestamp: 2024-12-12T19:23:09.039Z
Learning: When developing Pipedream components, do not add built-in Node.js modules like `fs` to `package.json` dependencies, as they are native modules provided by the Node.js runtime.
⏰ 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: Verify TypeScript components
- GitHub Check: Publish TypeScript components
🔇 Additional comments (5)
components/google_docs/package.json (1)
3-3: LGTM! Proper semantic versioning.The version increment from 0.4.3 to 0.4.4 correctly reflects the addition of the new
tabIdsfunctionality as a minor feature enhancement.components/google_docs/actions/get-document/get-document.mjs (4)
2-2: LGTM! Proper import for validation.The ConfigurationError import is correctly added to support the validation logic for the new
tabIdsfeature.
8-8: LGTM! Proper version increment.The version increment from 0.1.5 to 0.1.6 correctly reflects the addition of the new
tabIdsfunctionality.
41-43: LGTM! Proper validation logic.The validation correctly ensures that
tabIdscan only be used whenincludeTabsContentis true, preventing invalid configurations and providing clear error messaging.
47-49: LGTM! Correct filtering implementation.The filtering logic correctly filters the tabs array to include only tabs whose
tabIdmatches the providedtabIdslist, implementing the expected functionality.
|
Hi everyone, all test cases are passed! Ready for release! |
Adds a
tabIdsprop to support returning only the content of the specified tabs.Requested by user
Summary by CodeRabbit
New Features
Bug Fixes