Hello everyone. Im trialing out growthbook for my current company and I'm having to hack around the fact that (please correct me if I'm wrong) a feature flag's
default value
is shared between environments, instead of being distinct to each.
Say I have feature
X
working in
test
under a boolean
on/off
flag, so I just want to enable it in
test
and have the default value as
on
.
For
prod
I want to
X
to be
off
for everyone except for some internal users, but if I enable it in
prod
and set the default value as
off
it then affects the
test
env.
My current hack is to enable the feature in all envs with default value as
on
, then in
prod
adding an override clause that turns on the feature if the userId matches some condition.
If there are distinct default values for each env then they are isolated and you won't risk accidentally breaking one when configuring the other. Plus I can see that
override rules
are already env-scoped. So I was just wondering if there are specific reasoning behind making
default value
a global config.
I'm very new to feature toggling in general any suggestion/criticism is more than welcome!