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

GDPR Enforcement - Bugfix #5686

Merged
merged 8 commits into from
Sep 10, 2020
Merged

GDPR Enforcement - Bugfix #5686

merged 8 commits into from
Sep 10, 2020

Conversation

Fawke
Copy link
Contributor

@Fawke Fawke commented Sep 1, 2020

Type of change

  • Bugfix

Description of change

Resolves #5615

This PR implements the alternate approach discussed here - #5643

This PR makes an assumption:

  • 1 moduleCode - 1 GVL ID. Essentially establishes 1-1 mapping between a moduleCode and a GVL ID.

Copy link
Collaborator

@smenzer smenzer left a comment

Choose a reason for hiding this comment

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

a few corrections for the comments i think, but overall i like the approach

}
return gvlId;
return gvlid;
Copy link
Collaborator

Choose a reason for hiding this comment

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

could this also be shortened to just one-line?

return adapterManager.getAnalyticsAdapter(code) && adapterManager.getAnalyticsAdapter(code).gvlid || null;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the change. Was reluctant earlier because if the condition before && returns false, the function will return undefined and not null. Kind of a minor inconsistency, but I don't think that'll play a big role.

modules/gdprEnforcement.js Outdated Show resolved Hide resolved
modules/gdprEnforcement.js Outdated Show resolved Hide resolved
modules/gdprEnforcement.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@smenzer smenzer left a comment

Choose a reason for hiding this comment

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

LGTM

@smenzer smenzer added the needs 2nd review Core module updates require two approvals from the core team label Sep 3, 2020
Copy link
Collaborator

@jaiminpanchal27 jaiminpanchal27 left a comment

Choose a reason for hiding this comment

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

LGTM

@Fawke Fawke merged commit 8f249dc into master Sep 10, 2020
BrightMountainMediaInc pushed a commit to BrightMountainMediaInc/Prebid.js that referenced this pull request Sep 14, 2020
* consolicate getGVLID function into a single function

* pass correct arguments to gvlid getter functions

* have one master getGvlid getter function to rule other gvlId getter functions

* restore to file state on master branch

* remove unnecessary example

* remove unnecessary reference from internal object

* works on comments and change getgvlidForAnalyticds Adapter to a one liner
BrightMountainMediaInc pushed a commit to BrightMountainMediaInc/Prebid.js that referenced this pull request Sep 14, 2020
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.

GDPR Enforcement warnings on criteo, id5Id and pubcommonId userSync modules
3 participants