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

ozone adapter - fixup for gdpr and device objects #3593

Merged
merged 3 commits into from
Mar 8, 2019
Merged

ozone adapter - fixup for gdpr and device objects #3593

merged 3 commits into from
Mar 8, 2019

Conversation

afsheenb
Copy link
Contributor

@afsheenb afsheenb commented Feb 27, 2019

Type of change

  • [X ] Bugfix

Description of change

Updating ozone adapter to send device w/h and GDPR consent string in request.

@afsheenb afsheenb changed the title fixup for gdpr and device objects ozone adapter - fixup for gdpr and device objects Feb 27, 2019
@mkendall07 mkendall07 requested a review from bretg March 4, 2019 15:20
Copy link
Collaborator

@bretg bretg left a comment

Choose a reason for hiding this comment

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

Please add a unit test or two

- removed 3 IF statements because the condition was already tested in the validation method.
- added more tests to the spec file (check ozoneData, customData & lotameData are in the right place, and also NOT in the old location as well as some GDPR based unit tests)
@afsheenb
Copy link
Contributor Author

afsheenb commented Mar 7, 2019

@bretg we've submitted updated unit tests, please review and let us know if any further updates are needed.

cheers,

--afsheen

Copy link
Collaborator

@bretg bretg left a comment

Choose a reason for hiding this comment

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

Sorry for not noticing this before, but the logInfo calls are vague -- please either remove or add 'ozone' so people know what they mean. Preferably remove.

@@ -77,13 +78,18 @@ export const spec = {

delete ozoneRequest.test; // don't allow test to be set in the config - ONLY use $_GET['pbjs_debug']
if (bidderRequest.gdprConsent) {
utils.logInfo('ADDING GDPR');
Copy link
Collaborator

Choose a reason for hiding this comment

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

These debug log entries are likely to be confusing to others - please consider removing them or at least annotating with your bidder name so it's more clear what's adding GDPR.

}
} else {
utils.logInfo('WILL NOT ADD GDPR');
Copy link
Collaborator

Choose a reason for hiding this comment

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

same - please either remove or add your bidder name

@afsheenb
Copy link
Contributor Author

afsheenb commented Mar 8, 2019

@bretg done, we've explicitly added the bidder name to the debug logging statements for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants