Skip to content

fix: include-identity-traits-in-cache-key#262

Merged
Zaimwa9 merged 3 commits intomainfrom
fix/trait-data-ignored-from-cache
Apr 17, 2026
Merged

fix: include-identity-traits-in-cache-key#262
Zaimwa9 merged 3 commits intomainfrom
fix/trait-data-ignored-from-cache

Conversation

@Zaimwa9
Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 commented Apr 16, 2026

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Closes #238

Chose option 2 (include traits in cache key) from the proposed solutions as 1 (new boolean sdk option) is just covering the bug while adding complexity

  • New generateIdentityCacheKey that hash sorted and normalized traits in the cache key (same flags-{identifier} key if no traits)
  • Updated call sites and tests

How did you test this code?

  • New test exposing the bug turned green
  • Updated tests

@Zaimwa9 Zaimwa9 requested a review from a team as a code owner April 16, 2026 12:36
@Zaimwa9 Zaimwa9 requested review from khvn26 and talissoncosta and removed request for a team and khvn26 April 16, 2026 12:36
Copy link
Copy Markdown
Contributor

@talissoncosta talissoncosta left a comment

Choose a reason for hiding this comment

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

Looks good to me! 😄

@Zaimwa9 Zaimwa9 merged commit 1526afc into main Apr 17, 2026
4 checks passed
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.

Trait data ignored due to cache key not including traits

2 participants