Commit 18aa64a8 authored by Alper Akgun's avatar Alper Akgun

Merge branch 'default_quality_test_cases_to_on' into 'master'

Default test cases feature flag to on

See merge request gitlab-org/gitlab!47948
parents 767ed5cb b9972049
...@@ -9,7 +9,7 @@ class Projects::Quality::TestCasesController < Projects::ApplicationController ...@@ -9,7 +9,7 @@ class Projects::Quality::TestCasesController < Projects::ApplicationController
before_action :authorize_create_issue!, only: [:new] before_action :authorize_create_issue!, only: [:new]
before_action do before_action do
push_frontend_feature_flag(:quality_test_cases, project) push_frontend_feature_flag(:quality_test_cases, project, default_enabled: true)
end end
feature_category :quality_management feature_category :quality_management
...@@ -45,7 +45,7 @@ class Projects::Quality::TestCasesController < Projects::ApplicationController ...@@ -45,7 +45,7 @@ class Projects::Quality::TestCasesController < Projects::ApplicationController
private private
def verify_test_cases_flag! def verify_test_cases_flag!
render_404 unless Feature.enabled?(:quality_test_cases, project) render_404 unless Feature.enabled?(:quality_test_cases, project, default_enabled: true)
end end
def test_cases_finder def test_cases_finder
......
...@@ -43,7 +43,7 @@ module QualityManagement ...@@ -43,7 +43,7 @@ module QualityManagement
end end
def can_create_test_cases? def can_create_test_cases?
project.feature_available?(:quality_management) && Feature.enabled?(:quality_test_cases, project) project.feature_available?(:quality_management) && Feature.enabled?(:quality_test_cases, project, default_enabled: true)
end end
end end
end end
......
- return unless Feature.enabled?(:quality_test_cases, project) - return unless Feature.enabled?(:quality_test_cases, project, default_enabled: true)
- return unless project.feature_available?(:quality_management) - return unless project.feature_available?(:quality_management)
- return unless can?(current_user, :read_issue, project) - return unless can?(current_user, :read_issue, project)
......
---
title: Introduce quality test cases
merge_request: 47948
author:
type: added
...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/241983 ...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/241983
milestone: '13.4' milestone: '13.4'
type: development type: development
group: group::certify group: group::certify
default_enabled: false default_enabled: true
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