Skip to content
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

Fix #3265 - pbs cookie sync race condition #3393

Merged
merged 2 commits into from
Jan 3, 2019
Merged

Conversation

jsnellbaker
Copy link
Collaborator

Type of change

  • Bugfix

Description of change

Fixes #3265

@stale
Copy link

stale bot commented Jan 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 1, 2019
@stale stale bot removed the stale label Jan 2, 2019
@jsnellbaker jsnellbaker requested review from mkendall07 and removed request for jaiminpanchal27 January 2, 2019 15:23
Copy link
Member

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except for JS doc update.

/**
* Run a cookie sync for the given type, url, and bidder
*
* @param {string} type the type of sync, "image", "redirect", "iframe"
* @param {string} url the url to sync
* @param {string} bidder name of bidder doing sync for
*/
function doBidderSync(type, url, bidder) {
function doBidderSync(type, url, bidder, done) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you update the JSdoc params for done ?

@@ -616,11 +620,15 @@ exports.insertHtmlIntoIframe = function(htmlCode) {
* @param {string} url URL to be requested
* @param {string} encodeUri boolean if URL should be encoded before inserted. Defaults to true
*/
exports.insertUserSyncIframe = function(url) {
exports.insertUserSyncIframe = function(url, done) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JS doc here too

@jsnellbaker
Copy link
Collaborator Author

@mkendall07 Thanks for the feedback; I added the missing jsdoc comments.

@mkendall07 mkendall07 merged commit 74dcdfa into master Jan 3, 2019
olafbuitelaar pushed a commit to olafbuitelaar/Prebid.js that referenced this pull request Jan 3, 2019
* Fix prebid#3265 - pbs cookie sync race condition

* add/update jsdoc comments
amuraco pushed a commit to amuraco/Prebid.js that referenced this pull request Jan 28, 2019
* Fix prebid#3265 - pbs cookie sync race condition

* add/update jsdoc comments
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
* Fix prebid#3265 - pbs cookie sync race condition

* add/update jsdoc comments
@jsnellbaker jsnellbaker deleted the async_pbs_cookies branch March 18, 2019 13:38
pedrolopezmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Mar 18, 2019
* Fix prebid#3265 - pbs cookie sync race condition

* add/update jsdoc comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prebid Server cookie sync race condition
3 participants