-
Notifications
You must be signed in to change notification settings - Fork 297
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
feat: add 'config' field to proxy request for v0 #4352
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the 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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@@ -25,7 +25,8 @@ type transformerProxyAdapter interface { | |||
|
|||
type ProxyRequestPayloadV0 struct { | |||
integrations.PostParametersT | |||
Metadata ProxyRequestMetadata `json:"metadata"` | |||
Metadata ProxyRequestMetadata `json:"metadata"` | |||
DestinationConfig map[string]interface{} `json:"destinationConfig"` |
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.
This doesn't seem like a breaking change. So, no big deal. But ideally, we should be using v1 and deprecate v0 soon.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4352 +/- ##
==========================================
+ Coverage 74.01% 74.21% +0.20%
==========================================
Files 381 381
Lines 54406 54407 +1
==========================================
+ Hits 40266 40379 +113
+ Misses 11854 11754 -100
+ Partials 2286 2274 -12 ☔ View full report in Codecov by Sentry. |
* feat: add 'config' field to proxy request for v0 * chore: remove logger --------- Co-authored-by: Dilip Kola <33080863+koladilip@users.noreply.github.com> Co-authored-by: Akash Chetty <achetty.iitr@gmail.com>
Description
Resolves INT-1407
Update the transformer <> server proxy contract to support including 'config' at the root level in the proxy request from the server to the transformer. With these changes, the server will now append an additional 'config' field to the proxy request, propagating it to the transformer for utilization.
In this PR enabling it for V0. For V1 it was already enabled with this PR.
Linear Ticket
https://linear.app/rudderstack/issue/INT-1407/enable-destination-config-to-v0-proxy-endpoint
Security