-
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
Refactor UserId Module with external submodules #3831
Refactor UserId Module with external submodules #3831
Conversation
8f68e2f
to
5ab0c03
Compare
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.
Overall looks good. Please see comments
modules/idSystemUnifiedId.js
Outdated
|
||
import * as utils from '../src/utils.js' | ||
import {ajax} from '../src/ajax.js'; | ||
import {MODULE_NAME} from './userId.js' |
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.
On running gulp serve, hello_world page throws javascript error. It is something because of this circular dependency.
modules/idSystemPubCommonId.js
Outdated
/** | ||
* This module adds PubCommonId to the User ID module | ||
* The {@link module:userId} module is required | ||
* @module idSystemPubCommonId |
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.
Sorry for the confusion here. Shouldn't the name of module be like <name>IdSystem.js
to be consistent with our naming scheme.
modules/userId.js
Outdated
} | ||
|
||
/** | ||
* @param {PrebidConfig} config |
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.
Typedef missing for PrebidConfig. Also can you add some description to this function
utils.setCookie('unifiedid', '', EXPIRED_COOKIE_DATE); | ||
done(); | ||
}, {adUnits}); | ||
}); |
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.
Can you also one more test case should add new id system
to make sure new id systems will be added correctly. e.g: digitrust is going to be next one
70e00af
to
fcfa6b5
Compare
fcfa6b5
to
ad7b59d
Compare
d925747
to
409066e
Compare
requested changes are ready for review |
409066e
to
642abb2
Compare
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.
Confirmed the usersync case sensitivity and adsvr.org https issues.
@idettman or @jaiminpanchal27 - how would people include a given module into this new approach? I'd like to have a consistent naming structure like: gulp build --modules=userId,userId-digitrust,userId-id5 i.e. can we enforce that all sub-modules start with "userId-" ? |
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
Spoke with the team. The convention will be that all of these modules will be suffixed with *IdSystem. So eg. gulp build --modules=pubcommonIdSystem,unifiedIdSystem For 2.x, these two modules are grandfathered and automatically included. That should change in 3.0 |
@bretg Here's an example showing the
|
Type of change
Description of change
Support external userId sub-modules
Other updates
unifiedId
HTTPS support.issue 3796
userSync
and lowercaseusersync
,The plan is to support both
usersync
anduserSync
until Prebid.js 3.0, and thenusersync
will be deprecated.issue 3818
Other information
issue 3818
issue 3796