Add console warning when enabling development feature flags
So that administrators are clear on the risks when enabling features still in development, we should output a warning to the console when Feature.enable
is called on a development
feature flag.
Based on @dcouture's idea here: https://gitlab.slack.com/archives/CNZPN8BT3/p1656002008709409?thread_ts=1655996873.875759&cid=CNZPN8BT3
Proposal
Something like
> ::Feature.enable(:flag_name_goes_here, options_go_here)
WARNING: Understand the stability & security risks of enabling in-development feature flags.
See https://docs.gitlab.com/ee/administration/feature_flags.html#risks-when-enabling-features-still-in-development
=> true
Out of scope
ops
and experiment
feature flags: https://docs.gitlab.com/ee/development/feature_flags/index.html#types-of-feature-flags