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

update consentManagement error logic/handling #2723

Merged
merged 1 commit into from
Jun 20, 2018

Conversation

jsnellbaker
Copy link
Collaborator

Type of change

  • Bugfix
  • Refactoring (no functional changes, no api changes)

Description of change

Fix for #2720

This change will skip the check to evaluate the CMP results if the gdprApplies field is set to false. This change is meant to support CMP's that will not collect any consent information for any non-EU end-users; their response in this scenario would be gdprApplies=false and null for any other consent fields.

This change also updates the error message to better present the CMP response in the console. Previously the consentObject in the log message would just show [Object object] instead of the actual object.

@tpottersovrn
Copy link

Excellent!! I will give it a try.

Copy link
Collaborator

@snapwich snapwich left a comment

Choose a reason for hiding this comment

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

LGTM

@jsnellbaker jsnellbaker added the needs 2nd review Core module updates require two approvals from the core team label Jun 18, 2018
@jaiminpanchal27 jaiminpanchal27 merged commit 44fb866 into master Jun 20, 2018
@mkendall07 mkendall07 deleted the gdpr_update_error_logic branch August 17, 2018 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants