-
Couldn't load subscription status.
- Fork 5.5k
Salesforce source adjustment #14626
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
Salesforce source adjustment #14626
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
WalkthroughThe pull request includes updates to the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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
🧹 Outside diff range and nitpick comments (2)
components/salesforce_rest_api/sources/new-record-instant/new-record-instant.mjs (2)
13-23: Enhance prop description to mention URI length limitation.The
fieldsToObtainprop effectively addresses the HTTP 414 error issue. Consider updating the description to explicitly mention this benefit:- description: "Select the field(s) to be retrieved for the records. Only applicable if the source is running on a timer. If running on a webhook, or if not specified, all fields will be retrieved.", + description: "Select specific fields to be retrieved for the records. This helps prevent HTTP 414 errors that can occur with objects containing many fields. Only applicable if the source is running on a timer. If running on a webhook, or if not specified, all fields will be retrieved.",
Line range hint
1-144: Excellent solution for handling large object types.The implementation elegantly solves the HTTP 414 error issue by:
- Making field selection optional, maintaining backward compatibility
- Keeping all fields for webhook mode where URI length isn't an issue
- Allowing fine-grained control over fields in timer mode
This approach not only fixes the immediate issue but also provides better performance by reducing unnecessary data transfer.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
components/salesforce_rest_api/package.json(1 hunks)components/salesforce_rest_api/sources/new-record-instant/new-record-instant.mjs(2 hunks)
✅ Files skipped from review due to trivial changes (1)
- components/salesforce_rest_api/package.json
🔇 Additional comments (1)
components/salesforce_rest_api/sources/new-record-instant/new-record-instant.mjs (1)
10-10: LGTM! Version bump is appropriate.
The minor version increment (0.1.0 → 0.2.0) correctly reflects the addition of new functionality while maintaining backward compatibility.
components/salesforce_rest_api/sources/new-record-instant/new-record-instant.mjs
Show resolved
Hide resolved
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
🧹 Outside diff range and nitpick comments (1)
components/salesforce_rest_api/sources/new-record-instant/new-record-instant.mjs (1)
Line range hint
1-150: Overall architecture effectively addresses the URI length limitation.The solution elegantly solves the HTTP 414 issue by:
- Making field selection optional, maintaining backward compatibility
- Clearly documenting the behavior difference between timer and webhook modes
- Providing a flexible way to control request size
However, consider adding a note in the documentation about best practices for field selection to help users avoid the HTTP 414 error proactively.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
components/salesforce_rest_api/sources/new-record-instant/new-record-instant.mjs(4 hunks)
🔇 Additional comments (3)
components/salesforce_rest_api/sources/new-record-instant/new-record-instant.mjs (3)
10-24: Version bump and new prop definition look good!
The version bump to 0.2.0 correctly follows semantic versioning as this adds new functionality. The fieldsToObtain prop is well-defined with clear documentation about its behavior in different modes.
57-57: Good defensive programming!
The nullish coalescing operator (??) ensures a valid summary by falling back to the ID when the name is null/undefined.
74-74: Consistent implementation with timer meta!
The same defensive programming approach is correctly applied to webhook meta generation, maintaining consistency across the codebase.
components/salesforce_rest_api/sources/new-record-instant/new-record-instant.mjs
Show resolved
Hide resolved
|
/approve |
* version bumps * Adding fieldsToObtain prop * Adjustments
Closes #14560
Summary by CodeRabbit
fieldsToObtain, allowing users to specify which fields to retrieve for records.1.3.0to1.3.1.0.1.0to0.2.0.