-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Zenserp - new components #18921
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
Zenserp - new components #18921
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
WalkthroughAdds a Zenserp app implementation with HTTP helpers and propDefinitions, three new action modules for Google web/image/news searches that call the app's search method, and updates the component package version and dependency. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Action as Action Module
participant App as zenserp.app
participant HTTP as axios
participant API as Zenserp API
Action->>App: this.zenserp.search(params)
App->>App: _makeRequest(path:"/search", params)
App->>HTTP: HTTP request (api_key + params)
HTTP->>API: request
API-->>HTTP: response
HTTP-->>App: response data
App-->>Action: return response
Action->>Action: $.export(summary)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 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)
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: 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 (5)
components/zenserp/actions/google-image-search/google-image-search.mjs(1 hunks)components/zenserp/actions/google-news-search/google-news-search.mjs(1 hunks)components/zenserp/actions/google-search/google-search.mjs(1 hunks)components/zenserp/package.json(2 hunks)components/zenserp/zenserp.app.mjs(1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2024-12-12T19:23:09.039Z
Learnt from: jcortes
Repo: PipedreamHQ/pipedream PR: 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.
Applied to files:
components/zenserp/package.json
📚 Learning: 2025-09-15T22:01:11.472Z
Learnt from: GTFalcao
Repo: PipedreamHQ/pipedream PR: 18362
File: components/leonardo_ai/actions/generate-image/generate-image.mjs:103-105
Timestamp: 2025-09-15T22:01:11.472Z
Learning: In Pipedream components, pipedream/platform's axios implementation automatically excludes undefined values from HTTP requests, so there's no need to manually check for truthiness before including properties in request payloads.
Applied to files:
components/zenserp/zenserp.app.mjs
📚 Learning: 2025-06-04T17:52:05.780Z
Learnt from: GTFalcao
Repo: PipedreamHQ/pipedream PR: 16954
File: components/salesloft/salesloft.app.mjs:14-23
Timestamp: 2025-06-04T17:52:05.780Z
Learning: In the Salesloft API integration (components/salesloft/salesloft.app.mjs), the _makeRequest method returns response.data which directly contains arrays for list endpoints like listPeople, listCadences, listUsers, and listAccounts. The propDefinitions correctly call .map() directly on these responses without needing to destructure a nested data property.
Applied to files:
components/zenserp/zenserp.app.mjs
🧬 Code graph analysis (3)
components/zenserp/actions/google-news-search/google-news-search.mjs (2)
components/zenserp/actions/google-image-search/google-image-search.mjs (1)
response(66-79)components/zenserp/actions/google-search/google-search.mjs (1)
response(66-78)
components/zenserp/actions/google-search/google-search.mjs (2)
components/zenserp/actions/google-image-search/google-image-search.mjs (1)
response(66-79)components/zenserp/actions/google-news-search/google-news-search.mjs (1)
response(66-79)
components/zenserp/actions/google-image-search/google-image-search.mjs (2)
components/zenserp/actions/google-news-search/google-news-search.mjs (1)
response(66-79)components/zenserp/actions/google-search/google-search.mjs (1)
response(66-78)
⏰ 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: Verify TypeScript components
- GitHub Check: Publish TypeScript components
- GitHub Check: pnpm publish
- GitHub Check: Lint Code Base
🔇 Additional comments (8)
components/zenserp/package.json (1)
3-3: LGTM! Version bump and dependency addition are appropriate.The version bump to 0.1.0 and the addition of the @pipedream/platform dependency align well with the new features being introduced in this PR.
Also applies to: 15-16
components/zenserp/zenserp.app.mjs (4)
1-1: LGTM! Correct import pattern.The axios import from @pipedream/platform is the standard approach for Pipedream components.
6-110: Well-structured propDefinitions.The propDefinitions are comprehensive and well-organized, with appropriate labels, descriptions, and dynamic options providers. The structure enables good reusability across actions.
126-149: LGTM! Clean API wrapper methods.The list and search methods follow a consistent pattern and delegate properly to
_makeRequest.
115-125: No issues found. The Zenserp API uses an HTTP header named "apikey" for authentication, which matches the implementation in the code at line 121. The header format is correct.components/zenserp/actions/google-news-search/google-news-search.mjs (1)
1-83: LGTM! Clean action implementation.The Google News Search action follows Pipedream patterns correctly:
- Metadata and annotations are appropriate
- Props are properly wired via propDefinition
- The
tbm: "nws"parameter correctly specifies news search- Summary message is clear and informative
components/zenserp/actions/google-search/google-search.mjs (1)
1-82: LGTM! Standard search implementation is correct.The Google Search action properly implements standard web search by omitting the
tbmparameter. The structure is consistent with the other search actions.components/zenserp/actions/google-image-search/google-image-search.mjs (1)
1-83: LGTM! Image search implementation is correct.The Google Image Search action correctly uses
tbm: "isch"for image search. The consistent structure across all three search actions (image, news, standard) makes the codebase predictable and maintainable.
jcortes
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!
For Integration QA: |
|
Hello everyone, I have tested this PR and there're some test cases failed or needed improvement. Please check test reports below for more information:
|
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 selected for processing (1)
components/zenserp/actions/google-image-search/google-image-search.mjs(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
components/zenserp/actions/google-image-search/google-image-search.mjs (2)
components/zenserp/actions/google-search/google-search.mjs (1)
response(66-78)components/zenserp/actions/google-news-search/google-news-search.mjs (1)
response(66-79)
⏰ 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: Verify TypeScript components
- GitHub Check: Publish TypeScript components
- GitHub Check: Lint Code Base
- GitHub Check: pnpm publish
🔇 Additional comments (2)
components/zenserp/actions/google-image-search/google-image-search.mjs (2)
3-13: LGTM!The action metadata is properly configured with appropriate annotations for a read-only image search action.
54-69: Correct use oftbm: "isch"for image search.The action correctly sets the
tbmparameter to"isch"to specify Google Image Search, and the API call structure follows the established pattern from the other Zenserp actions.
components/zenserp/actions/google-image-search/google-image-search.mjs
Outdated
Show resolved
Hide resolved
|
Hi everyone, all test cases are passed! Ready for release! Test reports
|
|
/approve |
Resolves #10927
Summary by CodeRabbit