-
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
parrableIdSystem: Send current page location to back-end #5123
Conversation
Hey @jdwieland8282 @jaiminpanchal27 I see that the CircleCI build failed on the BrowserStack step for this specific test:
This seems like a timing issue and not related to my change. Could you point me in the right direction on re-running a build, or updating the failing test so it is more robust? |
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.
I know it's a small change, but ideally you add a test for the new param.
@icflournoy unfortunately these tests are flakey and fail sporadically. Usually the reviewer will rerun if necessary. |
Hey, thanks for the feedback @harpere I spent a bit of time trying to figure out how to add a good test for this additional property, but could not find an easy way forward. The property is something we are sending off to our backend servers, via an Xhr request. I see that Prebid has an Xhr mock that is used in a few places to create a fake http server:
This part makes sense to me. I'm having trouble getting the parrableIdSystem module to actually have its My understanding is that when Prebid.js/modules/userId/index.js Lines 337 to 343 in 7e26de8
but that doesn't seem to be happening. General development questions:
|
Hi @icflournoy - I don't think it's worth all that trouble to add the test. Sorry to put you through that, but looking on the bright side, maybe a good learning experience! Going to try to get you answers to your dev questions, but in the mean time will approve and merge this. |
Unfortunately, the ability to run a single test file is not functional at the moment, I'm not sure if there are plans to fix or not yet. But you can add .skip or .only to the describe blocks to ignore or isolate. To add debug logging you'll need to add |
* 'master' of https://github.com/prebid/Prebid.js: Revert "New LuponMedia Bid Adapter (prebid#5120)" (prebid#5145) New LuponMedia Bid Adapter (prebid#5120) Feature/send publisher domain (prebid#5121) update test adunit params (prebid#5135) add parameter to the conversant adapter to override the url (prebid#5133) Replace call to old url module with call to utils (prebid#5136) GumGum: uses encodeURIComponent inline (prebid#5124) User ID's (liveramp, britepool) and gdpr (prebid#5114) fix wipes adapter response (prebid#5134) Submitting Tercept Analytics Adapter (prebid#5099) hotfix - undefined consent (prebid#5127) parrableIdSystem: Send current page location to back-end (prebid#5123) Increment pre version Prebid 3.16.0 Release Use a deepmerge function to merge both globa level config & bidder specific config (prebid#5039) Update appnexusBidAdapter.js (prebid#4893) Quantcast: Block bids without purpose 1 consent (prebid#5046) ShowHeroes adapter v2 (prebid#5085) Qc/qc usersyncs (prebid#4923)
* master: Revert "New LuponMedia Bid Adapter (prebid#5120)" (prebid#5145) New LuponMedia Bid Adapter (prebid#5120) Feature/send publisher domain (prebid#5121) update test adunit params (prebid#5135) add parameter to the conversant adapter to override the url (prebid#5133) Replace call to old url module with call to utils (prebid#5136) GumGum: uses encodeURIComponent inline (prebid#5124) User ID's (liveramp, britepool) and gdpr (prebid#5114) fix wipes adapter response (prebid#5134) Submitting Tercept Analytics Adapter (prebid#5099) hotfix - undefined consent (prebid#5127) parrableIdSystem: Send current page location to back-end (prebid#5123) Increment pre version Prebid 3.16.0 Release Use a deepmerge function to merge both globa level config & bidder specific config (prebid#5039) Update appnexusBidAdapter.js (prebid#4893) Quantcast: Block bids without purpose 1 consent (prebid#5046) ShowHeroes adapter v2 (prebid#5085) Qc/qc usersyncs (prebid#4923)
* PBID-19: Send url (location.href) to Parrable ID system * PBID-19: Remove es6 destructuring syntax for ie compat
Type of change
Description of change
Send the page location (window.location.href) as determined by the logic in the refererDetection module to Parrable's ID system.
The non-Prebid integration with Parrable sends the value of
window.location.href
when making a request to our system. This change makes Prebid more closely match our non-Prebid integration.