How to model boolean features (no value) and is there a way to set groups of features ? #1871
-
Hi, I'm trying to use Flagsmith to set different billing plans for classes of users. Can you please give me your opinion on this ? as FF are generally used to have different behaviour for different environments (local, prod etc). For me I'm using features for teams of users like this:
Is this a good way to model this ? Also setting boolean as a value doesn't seem to be necessary in this particular case, as a feature by definition is either enabled (true) or not (false). What I aimed for and thought naively there is a way to do, is to set default features for not logged in users (default features), but for logged in users (custom features), I would defined their own set of features manually. A concept of teams of users would be great (for my own case). Visitors:
Logged in users (customers)
Edit: it seems I can use identities, and map users to a set of groups in app level somehow, this might be an option. Thanks a lot :) gz#361 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It might be better to use Flag Values as opposed to booleans, then check for that value in your code when enabling feateures. So have a value for each feature, which is the minimum plan level that it is available at. E.g.
Then set an Identity Trait for the plan the user is on. |
Beta Was this translation helpful? Give feedback.
-
Store a JSON list as a value of allowed plans. |
Beta Was this translation helpful? Give feedback.
It might be better to use Flag Values as opposed to booleans, then check for that value in your code when enabling feateures. So have a value for each feature, which is the minimum plan level that it is available at. E.g.
Then set an Identity Trait for the plan the user is on.