-
Notifications
You must be signed in to change notification settings - Fork 32
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
What are groups for and how to use them? #23
Comments
After having read the sources I've found that groups are exclusive (a feature can only be in one group) and are only used to group the features in the dashboard at the moment. I'm looking for a way to implement subscribable feature bundles and I think I could almost use groups for that. My current idea is to implement a "subscription" strategy that sort of does the opposite of what it sounds like :-) Each client is subscribed to a number of feature bundles (= groups) and this strategy switches off any feature the current client isn't subscribed to. This way the product managers can flip individual features for all subscribers (with db strategy) or just themselves (with cookies strategy). To implement this I would need to be able to find out inside the custom strategy to which group a feature belongs (given a feature symbol). I guess I can find that by reading the sources further, but it would be helpful for the others if the groups were explained in more details in the readme (including the API I'm looking for). |
Groups are for visually grouping only. I'm not entirely sure I understand your use case, have you managed to figure out a possible solution? |
I planned it, but haven't gotten back to implementing it yet. I'll probably be able to implement all I need on the application side. My use case is as follows:
So when I saw that flipflop has feature groups I though we could base the subscribable "big features" on groups. That is still my plan. My idea is to have a "group subscriptions" strategy which for a current customer disables any feature from unsubscribed groups. This way the product manager can simply enable the Does that make any sense? |
It seems to me you have a very specific use case, and I guess that with a custom strategy you should be able to implement it. That's how they were designed at least. If you run into any issues creating a custom strategy please post here again! |
I can see that features can be placed in groups, but what does it mean?
Can a feature participate in multiple groups?
Can a group be toggled on off?
Can a custom strategy find out feature's group(s)? How?
The text was updated successfully, but these errors were encountered: