optimizely / swift-sdk

Swift SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy)
https://www.optimizely.com/products/full-stack/
Apache License 2.0
21 stars 30 forks source link

[ENHANCEMENT] Whitelist users for features #551

Closed charlyliu closed 1 month ago

charlyliu commented 6 months ago

Description

Similarly to experiments, I would like to be able to whitelist a list of users for QA purposes to automatically rollout a feature to these users instead of using the audience. Meaning these users will always be enabled.

Benefits

Same way to white list QA users for experiments and features.

Detail

No response

Examples

No response

Risks/Downsides

No response

russell-loube-optimizely commented 6 months ago

Hi @charlyliu , thanks for your feedback! Could you elaborate on the main challenge with using a dedicated audience for your QA testers in a feature rollout? Is it due to having to manager user IDs of your QA testers as audience attributes in code, on top of having to configure this audience in Full Stack/Feature Experimentation?

charlyliu commented 6 months ago

Hello @russell-loube-optimizely, I was thinking that code wise when you have a feature why are you sending the user id again in the attributes when you already have it. But then for an experiment you are actually using the user id and you don't need to do an audience. I can see 2 benefits:

So with only isFeatureEnabled(featureKey: "feature_a", userId: "abc") you can rollout the feature to this user and force a variant to this user.