-
Notifications
You must be signed in to change notification settings - Fork 2
support feature flags #65
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
Conversation
* | ||
* @remarks | ||
* keyFilter of selector will be prefixed with "appconfig.featureflag/" when request is sent. | ||
* If no selectors are specified then no feature flags will be retrieved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If no selectors are specified, shouldn't we load all Feature Flags with null label? That's what we do for key-values too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per discussion, for feature flags we expect customers to explicitly specify selectors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we throw an error if FeatureFlagOptions.enabled
is true but selectors are not provided?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, as it makes no sense to enable feature flags but load nothing. Throwing an error is better than silently loading nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Avani Gupta <avanigupta@users.noreply.github.com>
…ovider into yanzh/fm
…ovider into yanzh/fm
By default feature flags are excluded and cannot be loaded. Only when
featureFlagOptions.enabled
is true, it loads feature flags as a whole into a preserved keyfeature_management
, according tofeatureFlagOptions.selectors
. The refresh behavior is independently controlled byfeatureFlagOptions.refresh
.