Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-11 21:10:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-11 21:10:06 +0300
commit7a1895c74ad57da757c02b2675147a5a5e2cfe6d (patch)
tree7204fd4cdecbf1166f1aebca080994fcb7f290cd /doc/api/project_level_variables.md
parent9dde2726710184f066387d044fce4ae2b3684210 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/project_level_variables.md')
-rw-r--r--doc/api/project_level_variables.md17
1 files changed, 10 insertions, 7 deletions
diff --git a/doc/api/project_level_variables.md b/doc/api/project_level_variables.md
index 07835b318f4..4760816f5d0 100644
--- a/doc/api/project_level_variables.md
+++ b/doc/api/project_level_variables.md
@@ -155,8 +155,10 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://git
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34490) in GitLab 13.2.
> - It's deployed behind a feature flag, disabled by default.
-> - It's disabled on GitLab.com.
-> - To use it in GitLab self-managed instances, ask a GitLab administrator to enable it.
+> - [Became enabled by default](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39209) on GitLab 13.3.
+> - It's enabled on GitLab.com.
+> - It's recommended for production use.
+> - For GitLab self-managed instances, GitLab administrators can opt to [disable it](#enable-or-disable).
This parameter is used for filtering by attributes, such as `environment_scope`.
@@ -168,17 +170,18 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://git
### Enable or disable
+It is deployed behind a feature flag that is **enabled by default**.
[GitLab administrators with access to the GitLab Rails console](../administration/feature_flags.md)
-can enable it for your instance.
+can opt to disable it for your instance.
-To enable it:
+To disable it:
```ruby
-Feature.enable(:ci_variables_api_filter_environment_scope)
+Feature.disable(:ci_variables_api_filter_environment_scope)
```
-To disable it:
+To enable it:
```ruby
-Feature.disable(:ci_variables_api_filter_environment_scope)
+Feature.enable(:ci_variables_api_filter_environment_scope)
```