Commit b9972049 authored by Felipe Artur's avatar Felipe Artur

Default test cases feature flag to on

Default quality_test_cases feature flag to on
parent 9546e89c
......@@ -9,7 +9,7 @@ class Projects::Quality::TestCasesController < Projects::ApplicationController
before_action :authorize_create_issue!, only: [:new]
before_action do
push_frontend_feature_flag(:quality_test_cases, project)
push_frontend_feature_flag(:quality_test_cases, project, default_enabled: true)
end
feature_category :quality_management
......@@ -45,7 +45,7 @@ class Projects::Quality::TestCasesController < Projects::ApplicationController
private
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
def test_cases_finder
......
......@@ -43,7 +43,7 @@ module QualityManagement
end
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
......
- 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 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
milestone: '13.4'
type: development
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