-
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
fix bug related to default usersync config for image-based pixels #4928
Conversation
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.
a couple of small things
@@ -45,6 +47,20 @@ export function newUserSync(userSyncDependencies) { | |||
let usConfig = userSyncDependencies.config; | |||
// Update if it's (re)set | |||
config.getConfig('userSync', (conf) => { | |||
// if userSync.filterSettings only contains iframe, merge in default image config to ensure image pixels are fired |
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.
might want to include a link to the issue (#4864) to give more detail on why this was done (how it broke backwards compatibility).
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.
Looks good to me.
@harpere I'll submit a small follow-up PR with the minor changes you asked. I was in the process of making those additions, so I should have it available relatively soon. |
…ebid#4928) * fix bug related to default usersync config * fix lint error
…ebid#4928) * fix bug related to default usersync config * fix lint error
Type of change
Description of change
Fixes #4864
This fix ensures the default userSync config (which allowed image pixels for all bidders) is properly used when a publisher only defines iframe
filterSettings
. If the publisher defines their ownimage
orall
config in thefilterSettings
field, then the default image setting is overwritten.