-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fixed bug with sortByDealAndPriceBucketOrCpm #5504
Conversation
This pull request fixes 1 alert when merging 697613f into 1049d07 - view on LGTM.com fixed alerts:
|
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.
Fix looks ok, but it should be covered with test case.
Also, please rebase/merge your branch with origin/master, currently you are 350+ commits behind
697613f
to
d06c7fc
Compare
This pull request fixes 1 alert when merging d06c7fc into 3a8f5cd - view on LGTM.com fixed alerts:
|
I still don't see that fix is covered by a test case, can you add test case that will cover it? |
d06c7fc
to
b269d69
Compare
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.
LGTM
This pull request fixes 1 alert when merging b269d69 into f9631fb - view on LGTM.com fixed alerts:
|
@@ -240,13 +240,13 @@ export function newTargeting(auctionManager) { | |||
let targetingMap = Object.keys(targetingCopy).map(adUnitCode => { | |||
return { | |||
adUnitCode, | |||
adUnitTargeting: targetingCopy[adUnitCode] | |||
adserverTargeting: targetingCopy[adUnitCode] |
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.
curious why this name was changed?
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.
The sortByDealAndPriceBucketOrCpm is now also used in getHighestCpmBidsFromBidPool and the bids received object has the original name of adserverTargeting. If we want to leave the adUnitTargeting name for that cloned targeting map I could change it to work a different way. Just felt it made sense to go with the same name and went with the original adserverTargeting name.
Type of change
Description of change
Fixes a bug related to sortByDealAndPriceBucketOrCpm when sendBidsControl.dealPrioritization = true
Other information
#5424