Skip to content

uid2: add the refreshStaleUid2s stale-token loop - #333

Merged
mosherBT merged 2 commits into
masterfrom
uid2-refresh-orchestrator
Oct 1, 2026
Merged

mosherBT merged 2 commits into
masterfrom
uid2-refresh-orchestrator

Conversation

@mosherBT

@mosherBT mosherBT commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Why

mergeCache (#330) returns staleUid2s with nowhere to send them. The protocol client (#328) and cache apply (#329) are merged, but nothing strings them together.

ClickUp Task ID: PRODUCT-3938

What Changed

  • refreshStaleUid2s(config, staleUid2s) in lib/addons/uid2-refresh.ts: refreshes each stale source against the operator and applies the outcome to the cache. Sequential, since every apply is a read-modify-write of the same cache copies. Entries without valid refresh material are skipped, a failed entry does not stop the rest, and nothing throws into the host page.
  • Docs: uid2-refresh.md section; eid-cache.md points its staleUid2s output here.

How to Test

Unit tests cover end-to-end refresh, opt-out eviction, entries without usable ref data, network failure, undecryptable response, a failed entry not aborting the loop, and the empty-list no-op.

  • Tested
  • Docs updated

Notes

@mosherBT mosherBT self-assigned this Sep 3, 2026
@etiennelatendresse-optable
etiennelatendresse-optable force-pushed the migrate-eid-cache-merge branch 2 times, most recently from 3820f7c to 8dde6d0 Compare September 15, 2026 16:06
@mosherBT
mosherBT force-pushed the uid2-refresh-orchestrator branch from 38b18d0 to 9fae0f5 Compare September 16, 2026 16:17
Base automatically changed from migrate-eid-cache-merge to master September 16, 2026 19:18
@mosherBT
mosherBT force-pushed the uid2-refresh-orchestrator branch from 9fae0f5 to ee5906f Compare September 16, 2026 19:23
@mosherBT
mosherBT marked this pull request as ready for review September 16, 2026 19:28
@mosherBT
mosherBT requested review from a team as code owners September 16, 2026 19:28
@mosherBT
mosherBT force-pushed the uid2-refresh-orchestrator branch from 306e47f to ee5906f Compare September 16, 2026 19:47
@mosherBT
mosherBT force-pushed the uid2-refresh-orchestrator branch from ee5906f to 07d14e0 Compare September 28, 2026 17:23
@mosherBT
mosherBT requested a review from a team as a code owner September 28, 2026 17:23
Comment thread lib/addons/uid2-refresh.test.ts
Comment thread lib/addons/uid2-refresh.ts
@mosherBT
mosherBT merged commit f08fca9 into master Oct 1, 2026
7 checks passed
@mosherBT
mosherBT deleted the uid2-refresh-orchestrator branch October 1, 2026 15:48
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.

2 participants