rollout icon indicating copy to clipboard operation
rollout copied to clipboard

Feature Request: System Group/Accounts

Open rdejuana opened this issue 8 years ago • 5 comments

Have y'all thought about adding account support?

Our system has the concept of accounts which are collections of users. We would like to enable a feature for a account without having to add each individual user.

rdejuana avatar Apr 11 '16 16:04 rdejuana

We do it by using another Rollout instance for the account IDs. There's no need for additional features.

eric avatar Apr 11 '16 17:04 eric

How are you doing that? We talked about that solution here, but it looks like you are using the same redis name spacing and would potentially have conflicts.

rdejuana avatar Apr 11 '16 17:04 rdejuana

You can use Redis Namespaces as referenced in the README.

eric avatar Apr 11 '16 17:04 eric

ah, thanks!

rdejuana avatar Apr 11 '16 17:04 rdejuana

Alternatively... instead of passing the objects to rollout (ex: $rollout.active?(:feature, user)) you can pass in the id yourself. This way you can manipulate that the ids for users and accounts are different.

$rollout.active?(:feature, user.id)
$rollout.active?(:feature, "a:#{user.account.id}")

Also, i think we can close this ticket. No?

Bertg avatar Jul 19 '18 14:07 Bertg