Closed moredip closed 2 years ago
The context type in this example is too simple. It should contain some agreed upon properties but accept arbitrary properties as well.
Another idea, although a bit longer, can be targetingKey
, or targetingId
.
I see value in using the language of "targeting" for this as @patricioe suggests. Here's my reasoning:
We could shorten it with the term targetKey
or targetId
.
cc @beeme1mr
We have opened a spec issue for context: https://github.com/open-feature/spec/issues/43, I'll close this and we can move the discussion there.
I would suggest distinctId
as in distinct identifier, for e.g. user, group, company etc
In some controlled rollout scenarios, cohorting is done by something other than user. For example, if you're canary releasing a new caching layer you might choose to turn it on for a subset of servers. So calling the hash input
userId
might be a bit confusing. Not sure what a better name is thought 🙃