GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.gitlab.com — Enable and disable GitLab features deployed behind feature flags | GitLab Docs
/ Enable and disable GitLab features deployed behind feature flags
GitLab adopted feature flag strategies to deploy features in an early stage of development so that they can be incrementally rolled out. Before making them permanently available, features can be deployed behind flags for a number of reasons, such as:
Features behind flags can be gradually rolled out, typically:
These features can be enabled and disabled to allow or prevent users from using them. It can be done by GitLab administrators with access to the Rails console or the Feature flags API. When you disable a feature flag, the feature is hidden from users and all of the functionality is turned off. For example, data is not recorded and services do not run. If you used a certain feature and identified a bug, a misbehavior, or an error, it’s very important that you provide feedback to GitLab as soon as possible so we can improve or fix it while behind a flag. When you upgrade GitLab, the feature flag status may change. Risks when enabling features still in developmentBefore enabling a disabled feature flag in a production GitLab environment, it is crucial to understand the potential risks involved. Data corruption, stability degradation, performance degradation, and security issues may occur if you enable a feature that’s disabled by default. Features that are disabled by default may change or be removed without notice in a future version of GitLab. Features behind default-disabled feature flags are not recommended for use in a production environment and problems caused by using features that are disabled by default aren’t covered by GitLab Support. Security issues found in features that are disabled by default are patched in regular releases and do not follow our regular maintenance policy with regards to backporting the fix. Risks when disabling released featuresIn most cases, the feature flag code is removed in a future version of GitLab. If and when that occurs, from that point onward you can’t keep the feature in a disabled state. How to enable and disable features behind flagsEach feature has its own flag that should be used to enable and disable it. The documentation of each feature behind a flag includes a section informing the status of the flag and the command to enable or disable it. Start the GitLab Rails consoleThe first thing you must do to enable or disable a feature behind a flag is to start a session on GitLab Rails console. For Linux package installations: shell For installations from the source: shell For details, see starting a Rails console session. Enable or disable the featureAfter the Rails console session has started, run the To enable a feature, run: ruby Example, to enable a fictional feature flag named ruby To disable a feature, run: ruby Example, to disable a fictional feature flag named ruby Some feature flags can be enabled or disabled on a per project basis: ruby For example, to enable the ruby Some feature flags can be enabled or disabled on a per user basis. For example, to enable the ruby
ruby When the feature is ready, GitLab removes the feature flag, and the option for enabling and disabling it no longer exists. The feature becomes available in all instances. Check if a feature flag is enabledTo check if a flag is enabled or disabled, use ruby When the feature is ready, GitLab removes the feature flag, and the option for enabling and disabling it no longer exists. The feature becomes available in all instances. View set feature flagsYou can view all GitLab administrator set feature flags: ruby Unset feature flagYou can unset a feature flag so that GitLab falls back to the current defaults for that flag: ruby Was this page helpful?
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |