identify: add identifyAndTokenize merging tokenized EIDs into the rolling cache - #342
Draft
etiennelatendresse-optable wants to merge 3 commits into
Draft
etiennelatendresse-optable wants to merge 3 commits into
etiennelatendresse-optable wants to merge 3 commits into
Conversation
etiennelatendresse-optable
force-pushed
the
migrate-eid-cache-merge
branch
from
September 15, 2026 15:52
8c5731b to
3820f7c
Compare
etiennelatendresse-optable
force-pushed
the
identify-and-tokenize
branch
from
September 15, 2026 16:02
490bbd5 to
5327123
Compare
etiennelatendresse-optable
force-pushed
the
migrate-eid-cache-merge
branch
from
September 15, 2026 16:06
3820f7c to
8dde6d0
Compare
etiennelatendresse-optable
force-pushed
the
identify-and-tokenize
branch
from
September 15, 2026 16:06
5327123 to
59dcbba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Thirteen solutions bundles copy
identifyAndTokenize, the publisher-facing hashed-email identity entry point.What Changed
identifyAndTokenize(sdk, id, { isControlGroup?, cacheKey?, maxUidsPerEid? })— normalizes the id (e:prefix for bare ids), always identifies, tokenizes outside the control group, merges the result into the rolling EID cache viamergeCache, and announces the write withoptable-targeting:change.OPTABLE_TOKENIZE_DONE) withoptableForceTokenizeoverride; the guard resets on error so a failed tokenize retries.{ merged, staleUid2s }so callers can chain UID2 refreshes.How to Test
Notes
Stacked on #330 (uses
mergeCacheand the refs sidecar) — base ismigrate-eid-cache-merge; retarget to master once #330 merges. Part of PRODUCT-3937 (subtask PRODUCT-4154).Co-authored-by: Etienne Latendresse etienne.latendresse@optable.co