-
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
Yieldbot adunit bidder params slot name usage fix #1394
Conversation
@elljoh You have conflicts. Please rebase with master |
e3068bf
to
e1112db
Compare
@jaiminpanchal27 heya, rebased to |
@jaiminpanchal27 lmk if there is anything else needed here. thanks! |
@elljoh Will check it today. Thanks |
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.
@elljoh Left some comments.
} | ||
|
||
function removeBids(bidder) { | ||
if (window && window.pbjs) { | ||
window.pbjs._bidsRequested = window.pbjs._bidsRequested.filter(o => { |
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.
you should not touch pbjs private variables. This can break other tests.
expect(sizes).to.deep.equal([]); | ||
}); | ||
|
||
it('should return [] for function sizes', function() { |
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.
duplicate test..
const adapter = new YieldbotAdapter(); | ||
adapter.callBids(bidderRequest); | ||
mockYieldbotBidRequest(); | ||
removeBids('yieldbot'); | ||
|
||
let bidResponses = window.$$PREBID_GLOBAL$$._bidsReceived.filter(o => { |
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.
you should not access pbjs private vars. you can test this by stubbing bidmanager.addBidResponse
@elljoh Any update ? |
@jaiminpanchal27 apologies, I'm out of the office until Monday 20170814. Will address your comments then. Thank you. |
e1112db
to
cd68636
Compare
@jaiminpanchal27 hi. anything remain for this pull request to merge? |
@elljoh We require 2 LGTM's for PR to merge. I have approved this so someone should take it. Let me assign someone so that we get this in. Thanks |
* Yieldbot adunit bidder params slot name usage fix * Yieldbot adunit bidder params slot name usage fix, PR feedback++
* Yieldbot adunit bidder params slot name usage fix * Yieldbot adunit bidder params slot name usage fix, PR feedback++
* tag '0.28.0' of https://github.com/prebid/Prebid.js: (27 commits) Prebid 0.28.0 Release Revert "Upgrade sinon to 3.x (prebid#1491)" (prebid#1563) add () for correct order of operations in scaling increments for currency (prebid#1559) AppnexusAst adapter update: Added source and version to request payload (prebid#1555) remove unnecessary spread operator (prebid#1561) Adxcg adapter (prebid#1554) Upgrade sinon to 3.x (prebid#1491) Rename vastPayload to vastXml (prebid#1556) Single-size sizes array now can be taken, too (prebid#1535) Updated the istanbul-instrumenter-loader (prebid#1550) Add AerServ Adapter (prebid#1538) Fixed imports and made adform support aliasing (prebid#1518) Custom granularity fix (prebid#1546) Fix `documentation lint` issues (prebid#1544) Yieldbot adunit bidder params slot name usage fix (prebid#1394) Update serverbid adapter to use smartsync (prebid#1324) Add improvedigitalBidAdapter (prebid#1381) Fix prebid#1533 spring server typo (prebid#1542) userSync is off by default (prebid#1543) currency module (prebid#1374) ...
* Yieldbot adunit bidder params slot name usage fix * Yieldbot adunit bidder params slot name usage fix, PR feedback++
….28.0 to aolgithub-master * commit '4d9ade3df767750743f8888ed9efd6c77f8d0050': (26 commits) Added changelog entry. Added new aol partners ids. Prebid 0.28.0 Release Revert "Upgrade sinon to 3.x (prebid#1491)" (prebid#1563) add () for correct order of operations in scaling increments for currency (prebid#1559) AppnexusAst adapter update: Added source and version to request payload (prebid#1555) remove unnecessary spread operator (prebid#1561) Adxcg adapter (prebid#1554) Upgrade sinon to 3.x (prebid#1491) Rename vastPayload to vastXml (prebid#1556) Single-size sizes array now can be taken, too (prebid#1535) Updated the istanbul-instrumenter-loader (prebid#1550) Add AerServ Adapter (prebid#1538) Fixed imports and made adform support aliasing (prebid#1518) Custom granularity fix (prebid#1546) Fix `documentation lint` issues (prebid#1544) Yieldbot adunit bidder params slot name usage fix (prebid#1394) Update serverbid adapter to use smartsync (prebid#1324) Add improvedigitalBidAdapter (prebid#1381) Fix prebid#1533 spring server typo (prebid#1542) ...
* Yieldbot adunit bidder params slot name usage fix * Yieldbot adunit bidder params slot name usage fix, PR feedback++
Type of change
Description of change
Resolves #1392
AdUnit configuration that uses the same slot name for the Yieldbot bidder params, i.e. multiple occurrences such as the below, results in erroneous
bidmanager.addBidResponse(...)
calls.See Issue #1392 for more details.
Other information
Resolves #1392