Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make Feature Flag required based on another Feature Flag in Flagsmith

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?

like image 409
rsc Avatar asked Dec 06 '25 07:12

rsc


1 Answers

(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.

like image 156
DaBeeeenster Avatar answered Dec 09 '25 20:12

DaBeeeenster



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!