Skip to content

UserID module: autoRefresh and retainConfig flags #13021

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

Open
wants to merge 6 commits into
base: prebid-10.0
Choose a base branch
from

Conversation

mkomorski
Copy link
Collaborator

Type of change

  • Feature

Description of change

Other information

Closes #12104

@mkomorski mkomorski requested a review from dgirardi April 22, 2025 21:25
@patmmccann patmmccann changed the base branch from master to prebid-10.0 April 24, 2025 20:33
return registry
.reduce((acc, submodule) => {
const {name, aliasName} = submodule;
const submoduleConfig = findBy(configs, 'name', [name, aliasName], null, normalizer);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think a simple find would be simpler and shorter (+ normalizing to an empty string is suspect). For example

Suggested change
const submoduleConfig = findBy(configs, 'name', [name, aliasName], null, normalizer);
const matchesName = (config) => [name, aliasName].some(value => value?.toLowerCase() === config.name.toLowerCase())
const submoduleConfig = configs.find(matchesName)

and later

   const previousSubmodule = prevSubmodules.find((mod) => matchesName(mod.config))

@mkomorski mkomorski force-pushed the mkomorski/userid-refreshing branch from d957458 to e1f2a7e Compare May 4, 2025 09:35
@mkomorski mkomorski requested a review from dgirardi May 5, 2025 09:58
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.

Initializing userid module with config requires manual refresh of ids once config is updated
4 participants