Commit 4b825719 authored by Pavel Shutsin's avatar Pavel Shutsin

Enable instance DevOps adoption by default

parent 2323fd01
--- ---
name: devops_adoption_feature name: devops_adoption_feature
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46005 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46005
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/271568 rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/325795
milestone: '13.6' milestone: '13.6'
type: development type: development
group: group::optimize group: group::optimize
default_enabled: false default_enabled: true
...@@ -59,18 +59,18 @@ DevOps Adoption allows you to: ...@@ -59,18 +59,18 @@ DevOps Adoption allows you to:
### Disable or enable DevOps Adoption ### Disable or enable DevOps Adoption
DevOps Adoption is deployed behind a feature flag that is **disabled by default**. DevOps Adoption is deployed behind a feature flag that is **enabled by default**.
[GitLab administrators with access to the GitLab Rails console](../../../administration/feature_flags.md) [GitLab administrators with access to the GitLab Rails console](../../../administration/feature_flags.md)
can opt to enable it. can opt to disable it.
To enable it: To disable it:
```ruby ```ruby
Feature.enable(:devops_adoption_feature) Feature.disable(:devops_adoption_feature)
``` ```
To disable it: To reenable it:
```ruby ```ruby
Feature.disable(:devops_adoption_feature) Feature.enable(:devops_adoption_feature)
``` ```
...@@ -16,7 +16,7 @@ module EE ...@@ -16,7 +16,7 @@ module EE
feature_already_in_use = ::Analytics::DevopsAdoption::Segment.any? feature_already_in_use = ::Analytics::DevopsAdoption::Segment.any?
::License.feature_available?(:devops_adoption) && ::License.feature_available?(:devops_adoption) &&
(feature_already_in_use || ::Feature.enabled?(:devops_adoption_feature, default_enabled: false)) (feature_already_in_use || ::Feature.enabled?(:devops_adoption_feature, default_enabled: :yaml))
end end
end end
end end
......
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