Reputation: 10669
In Flagsmith, is there a way to tie Feature Flags together in a way that if I enable Feature Flag "A", and that requires Feature Flag "B", then the user is warned that Flag "B" is required?
Upvotes: 3
Views: 376
Reputation: 1552
(I'm a Flagsmith founder)
Right now, Flagsmith doesnt have dependent flags. We do have plans to implement them (as of Feb 2024) which you can track here.
As a work around, you can achieve dependency in code by writing a helper function that checks the state of Flag A and Flag B.
Having said that, we do generally regard flag dependencies as something of an anti-pattern; it adds complexity and can sometimes obscure the resultant application behaviour.
We do occasionally have folk who present a use case that would help with dependent flags, hence its inclusion on the roadmap.
Upvotes: 4