Commit 2c3038c8 authored by Robert Speicher's avatar Robert Speicher

Merge branch '284140-enable-flag-by-default' into 'master'

Enable codequality_mr_diff feature flag by default

See merge request gitlab-org/gitlab!61810
parents a70eb46c ebffdefb
......@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/284140
milestone: '13.7'
type: development
group: group::testing
default_enabled: false
default_enabled: true
......@@ -53,20 +53,21 @@ See also the Code Climate list of [Supported Languages for Maintainability](http
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/267612) in [GitLab Ultimate](https://about.gitlab.com/pricing/) 13.11.
> - [Deployed behind a feature flag](../../../user/feature_flags.md), disabled by default.
> - [Enabled by default](https://gitlab.com/gitlab-org/gitlab/-/issues/284140) in GitLab 13.12.
Changes to files in merge requests can cause Code Quality to fall if merged. In these cases,
an indicator is displayed (**{information-o}** **Code Quality**) on the file in the merge request's diff view. For example:
![Code Quality MR diff report](img/code_quality_mr_diff_report_v13_11.png)
To enable this feature, a GitLab administrator can run the following in a
To disable this feature, a GitLab administrator can run the following in a
[Rails console](../../../administration/operations/rails_console.md):
```ruby
# For the instance
Feature.enable(:codequality_mr_diff)
Feature.disable(:codequality_mr_diff)
# For a single project
Feature.enable(:codequality_mr_diff, Project.find(<project id>))
Feature.disable(:codequality_mr_diff, Project.find(<project id>))
```
## Use cases
......
---
title: Show code quality badges on MR diff file headers
merge_request: 61810
author:
type: added
......@@ -52,7 +52,7 @@ module Gitlab
end
def self.display_quality_on_mr_diff?(project)
::Feature.enabled?(:codequality_mr_diff, project, default_enabled: false)
::Feature.enabled?(:codequality_mr_diff, project, default_enabled: :yaml)
end
def self.gldropdown_tags_enabled?
......
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