-
Notifications
You must be signed in to change notification settings - Fork 748
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
Modularity: Make request wrapper accessible in bidder request hook #3096
Changes from 6 commits
79ac96c
cdc8f22
39f39d4
80daab8
64ca130
358c3b4
d841a8a
37a5e5a
c5a7249
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,5 @@ type ProcessedAuctionRequest interface { | |
// ProcessedAuctionRequestPayload consists of the openrtb_ext.RequestWrapper object. | ||
// Hooks are allowed to modify openrtb_ext.RequestWrapper using mutations. | ||
type ProcessedAuctionRequestPayload struct { | ||
RequestWrapper *openrtb_ext.RequestWrapper | ||
BidRequest *openrtb_ext.RequestWrapper | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think naming There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Request Wrapper is an internal concept for optimization. I don't find the Bid Request misleading, since the RequestWrapper embeds the BidRequest it acts as a drop-in replacement with enhanced functionality. Would it be better to name this simply Request instead of BidRequest? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I prefer it being named There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
} |
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.
Is there a variable name other than
brw
we could use? I'd prefer something likereqWrapper
for clarity, but if you preferbrw
I'm fine to keep it like this.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.
renamed to
request
, similar to other renames