-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement transient traits and identities #4278
Comments
@khvn26 I understand that we should implement transient traits because it is a quick and cost-effective way to cover some of the use cases related to contexts. While it could also help with anonymous identities or other use cases, we should keep the scope restricted to transient traits since that is the reason we decided to move ahead with its implementation. |
Regarding the implementation, I would rather suggest to add a boolean attribute to the trait model, so you can specify and persist whether it is transient or not. That would allow customers to design the behavior of flags, and would allow transient flags without changes to the SDKs. We could also allow SDKs to request a trait to be marked as transient, but that would be optional. |
@novakzaballa I agree with this. However, not all SDKs expose the trait model; some, mainly the server-side ones, accept a simple string to value mapping instead. I suggest we use the |
Agreed @khvn26 |
As discussed here and offline, we're choosing to leave out the additional parameter in favour of extending the {
transient: boolean
value: TraitValue
} |
Goal
To support additional use cases, such as evaluating identities in different contexts or managing anonymous identities, we aim to enable our SDK users to:
Solution Proposal
Make /api/v1/identities endpoints support optional boolean
"transient"
attributes both for the top-level identity object and a trait object.Don't persist identities and traits marked as transient.
In SDKs, support
transient: bool
andtransientTraits: list[str]
optional keywords for thegetIdentityFlags
interface.Related issues and discussions
Customer requests and use case discussions:
API tasks:
SDK tasks:
The text was updated successfully, but these errors were encountered: