Commit 363ccccb authored by Nick Gaskill's avatar Nick Gaskill

Merge branch 'docs-merge-trains-note' into 'master'

Fix details about merge train feature flag

See merge request gitlab-org/gitlab!46631
parents e62756a2 1e233275
...@@ -200,17 +200,23 @@ for more information. ...@@ -200,17 +200,23 @@ for more information.
### Merge Trains feature flag **(PREMIUM ONLY)** ### Merge Trains feature flag **(PREMIUM ONLY)**
To enable and disable the Merge Trains feature, use the `:disable_merge_trains` feature flag. Merge trains are automatically enabled when [pipelines for merged results](../index.md#pipelines-for-merged-results)
are enabled. To use pipelines for merged results without using merge trains, you must
enable a [feature flag](../../../../user/feature_flags.md) that blocks the merge trains
feature.
To check if the feature flag is enabled on your GitLab instance, [GitLab administrators with access to the GitLab Rails console](../../../../administration/feature_flags.md)
ask an administrator to execute the following commands: can enable the feature flag to disable merge trains:
```shell ```ruby
> sudo gitlab-rails console # Login to Rails console of GitLab instance. Feature.enable(:disable_merge_trains)
> Feature.enabled?(:disable_merge_trains) # Check if it's disabled or not.
> Feature.enable(:disable_merge_trains) # Enable Merge Trains.
> Feature.disable(:disable_merge_trains) # Disable Merge Trains.
``` ```
When you disable this feature, all existing merge trains are cancelled and After you enable this feature flag, all existing merge trains are cancelled and
the **Start/Add to Merge Train** button no longer appears in merge requests. the **Start/Add to Merge Train** button no longer appears in merge requests.
To disable the feature flag, and enable merge trains again:
```ruby
Feature.disable(:disable_merge_trains)
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment