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

Integrate id link system #3965

Merged
merged 10 commits into from
Jul 23, 2019
Merged

Conversation

mamatic
Copy link
Contributor

@mamatic mamatic commented Jul 4, 2019

Type of change

  • Feature

Description of change

  • Add Identity Link submodule in module userId to fetch user’s identity link envelope and add it to the bid request. It is very similar to other userId submodule like Id5id and unifiedID.

  • A link to a PR on the docs repo at Integrate id link system prebid.github.io#1377

Copy link
Contributor

@idettman idettman left a comment

Choose a reason for hiding this comment

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

Change the submodule registration so that it is handled in the identityLinkSubmodule, not in userId/index.js

@@ -423,5 +425,6 @@ init(config);
// add submodules after init has been called
attachIdSystem(pubCommonIdSubmodule);
attachIdSystem(unifiedIdSubmodule);
attachIdSystem(identityLinkSubmodule);
Copy link
Contributor

@idettman idettman Jul 9, 2019

Choose a reason for hiding this comment

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

The attachIdSystem should be used in the file identityLinkSystem.js, the unifiedId and pubComonId are the only submodules included by default, and they will also be optional starting with Prebid 3.0.

Look at the code for ID5 Submodule as an example.
Specifically, lines 10 and 60 are responsible for registering the submodule with the user id module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @idettman,
Thank you for the explanation. I'm changed implementation of identityLink submodule as you suggested. Follow the code in ID5 Submodule...

@idettman
Copy link
Contributor

idettman commented Jul 9, 2019

Also, conflicts need resolution

@idettman idettman added needs 2nd review Core module updates require two approvals from the core team reviewed labels Jul 15, 2019
@@ -77,6 +78,7 @@ import CONSTANTS from '../../src/constants.json';
import {module} from '../../src/hook';
import {unifiedIdSubmodule} from './unifiedIdSystem.js';
import {pubCommonIdSubmodule} from './pubCommonIdSystem.js';
import {identityLinkSubmodule} from './identityLinkSystem.js';
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the import for identityLinkSubmodule - the identity link submodule handles the registering in it’s submodule js.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@idettman idettman added LGTM and removed needs 2nd review Core module updates require two approvals from the core team needs update labels Jul 23, 2019
Copy link
Contributor

@idettman idettman left a comment

Choose a reason for hiding this comment

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

LGTM

@idettman idettman merged commit 05cf0d2 into prebid:master Jul 23, 2019
leonardlabat pushed a commit to criteo-forks/Prebid.js that referenced this pull request Jul 30, 2019
* idLink - integrate new submodule idLinkSystem in to userId module

* idLink - Fix unit tests

* identityLink - Change submodule name from idLink to identityLink

* Identity Link - Remove identity link to be default submodule
VideoReach pushed a commit to VideoReach/Prebid.js that referenced this pull request Aug 1, 2019
* idLink - integrate new submodule idLinkSystem in to userId module

* idLink - Fix unit tests

* identityLink - Change submodule name from idLink to identityLink

* Identity Link - Remove identity link to be default submodule
sa1omon pushed a commit to gamoshi/Prebid.js that referenced this pull request Nov 28, 2019
* idLink - integrate new submodule idLinkSystem in to userId module

* idLink - Fix unit tests

* identityLink - Change submodule name from idLink to identityLink

* Identity Link - Remove identity link to be default submodule
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