-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement feature flag #11070
Implement feature flag #11070
Conversation
- get feature flag from AppConfig - add Feature component and useFeature hook - this change replace the environement variable based feature flag (#6367)
77a1657
to
8067622
Compare
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.
As I'm not so familiar with the code base maybe someone else should also review this PR?
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.
Added some comments while looking at the code. I'm having some troubles with my local environment so I could not yet test the code.
22084b9
to
2f719a1
Compare
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.
Only a suggestion, other than that looks fine to me.
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.
Looks good to me, thank you! 👍
These changes add components and hooks that allow checking for feature flags.
Motivation and Context
This is part of the Feature flag V1 implementation. It uses
featureFlags
list set in the config.js file by the backend as the source of flags. Therefore this replaces the environment variable version used in #6367.ref. #938
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
close Graylog2/graylog-plugin-cloud#938