Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2318d49f
Commit
2318d49f
authored
Jul 10, 2020
by
Rene Verschoor
Committed by
Marcel Amirault
Jul 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Feature flag enable/disable clarification
parent
6c00ffc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
doc/administration/feature_flags.md
doc/administration/feature_flags.md
+18
-0
No files found.
doc/administration/feature_flags.md
View file @
2318d49f
...
...
@@ -109,6 +109,24 @@ For example, to enable the [`:junit_pipeline_view`](../ci/junit_test_reports.md#
Feature
.
enable
(
:junit_pipeline_view
,
Project
.
find
(
1234
))
```
`Feature.enable`
and
`Feature.disable`
always return
`nil`
, this is not an indication that the command failed:
```
ruby
irb
(
main
):
001
:
0
>
Feature
.
enable
(
:release_evidence_collection
)
=>
nil
```
To check if a flag is enabled or disabled you can use
`Feature.enabled?`
or
`Feature.disabled?`
:
```
ruby
Feature
.
enable
(
:release_evidence_collection
)
=>
nil
Feature
.
enabled?
(
:release_evidence_collection
)
=>
true
Feature
.
disabled?
(
:release_evidence_collection
)
=>
false
```
When the feature is ready, GitLab will remove the feature flag, the option for
enabling and disabling it will no longer exist, and the feature will become
available in all instances.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment