Skip to content

identify: add identifyAndTokenize merging tokenized EIDs into the rolling cache - #342

Draft
etiennelatendresse-optable wants to merge 3 commits into
masterfrom
identify-and-tokenize
Draft

etiennelatendresse-optable wants to merge 3 commits into
masterfrom
identify-and-tokenize

Conversation

@etiennelatendresse-optable

@etiennelatendresse-optable etiennelatendresse-optable commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Why

Thirteen solutions bundles copy identifyAndTokenize, the publisher-facing hashed-email identity entry point.

What Changed

  • core: 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 via mergeCache, and announces the write with optable-targeting:change.
  • Session guard (OPTABLE_TOKENIZE_DONE) with optableForceTokenize override; the guard resets on error so a failed tokenize retries.
  • Returns { merged, staleUid2s } so callers can chain UID2 refreshes.
  • Tests, README section.

How to Test

  • Tested
  • Docs updated

Notes

Stacked on #330 (uses mergeCache and the refs sidecar) — base is migrate-eid-cache-merge; retarget to master once #330 merges. Part of PRODUCT-3937 (subtask PRODUCT-4154).

Base automatically changed from migrate-eid-cache-merge to master September 16, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant