feat: Support transient identities and traits#4325
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
|
|
|
|
|
|
|
|
|
|
f82a97f to
a47b4bc
Compare
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4325 +/- ##
==========================================
+ Coverage 96.61% 96.78% +0.17%
==========================================
Files 1196 1159 -37
Lines 39123 38152 -971
==========================================
- Hits 37797 36925 -872
+ Misses 1326 1227 -99 ☔ View full report in Codecov by Sentry. |
matthewelwell
left a comment
There was a problem hiding this comment.
I've added a few fairly minor comments, but one additional thing that (I think) is missing, is a test that verifies that transient traits are correctly used when evaluating segments / segment overrides. Maybe this is implicit from other tests but I certainly expected to see an explicit test for this case.
Docker builds report
|
815b6e3 to
3929b2d
Compare
Thanks for submitting a PR! Please check the boxes below:
pre-committo check lintingdocs/if required so people know about the feature!Changes
Closes #4279.
Contributes to #4278.
This adds support for
transientparametertransientattribute for traitsfor the
/api/v1/identitiesSDK endpoint (GET, POST).When including top-level
transient: true, identity is evaluated against segments but is not persisted at all.When calling the endpoint with traits marked as transient, these traits get evaluated against segments but do not get persisted.
Additionally,
Identity.update_traitsdoes not perform twoSELECTqueries anymore.How did you test this code?
Added unit tests for views and serializers.