-
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
Consent Management module bug fix. #2588
Conversation
* ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: cleanup * ET-1691: minor * ET-1691: revert package.json change
ET-1850: Fixing #866
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.
LGTM thanks for putting this together.
This reverts commit fc95a52.
This reverts commit fc95a52.
@anand-venkatraman As you may have seen from the additional updates on this PR, we had to partially revert the changes to fix the build on master. The unit test updates were causing some test failures on Safari browsers (see here https://travis-ci.org/prebid/Prebid.js/builds/382804970). If you want to re-include the unit test enhancements, can you please take a look into these errors and create another PR with the updated changes? |
@jsnellbaker didnt notice it before, but will check this and create another PR for you. Thanks. |
* ET-1691: Pulsepoint Analytics adapter for Prebid. (#1) * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: cleanup * ET-1691: minor * ET-1691: revert package.json change * Adding bidRequest to bidFactory.createBid method as per prebid#509 * ET-1765: Adding support for additional params in PulsePoint adapter (#2) * ET-1850: Fixing prebid#866 * Minor fix * Adding mandatory parameters to Bid * GDPR Bug Fix with String response * minor
* Revert "Consent Management module bug fix. (prebid#2588)" This reverts commit fc95a52. * use new file for string includes
* ET-1691: Pulsepoint Analytics adapter for Prebid. (prebid#1) * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: Adding pulsepoint analytics and tests for pulsepoint adapter * ET-1691: cleanup * ET-1691: minor * ET-1691: revert package.json change * Adding bidRequest to bidFactory.createBid method as per prebid#509 * ET-1765: Adding support for additional params in PulsePoint adapter (prebid#2) * ET-1850: Fixing prebid#866 * Minor fix * Adding mandatory parameters to Bid * GDPR Bug Fix with String response * minor
* Revert "Consent Management module bug fix. (prebid#2588)" This reverts commit fc95a52. * use new file for string includes
Type of change
Description of change
Consent Management module has a bug when the CMP module responds back with
String
message instead ofObject
. The code fragment that checks for existence of substringcmpReturn
, makes the check usingarray.includes
, instead ofstring.includes
from thecore-js
lib.Also the test, was not really testing the code part for iframed pages. Since the existing test created a stub for
window.__cmp
, the test was not really running the code branch for "iframed" -callCmpWhileInIframe
. Updated the test to verify behavior with bothObject
message format andString
message format.