Commit 4f1475f9 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'remove-ff-ci_set_project_default_git_depth' into 'master'

Remove FF ci_set_project_default_git_depth

See merge request gitlab-org/gitlab!30589
parents 1852c796 f838c7e8
......@@ -37,8 +37,6 @@ class ProjectCiCdSetting < ApplicationRecord
private
def set_default_git_depth
return unless Feature.enabled?(:ci_set_project_default_git_depth, default_enabled: true)
self.default_git_depth ||= DEFAULT_GIT_DEPTH
end
end
......
......@@ -54,17 +54,5 @@ describe ProjectCiCdSetting do
expect(project.reload.ci_cd_settings.default_git_depth).to eq(0)
end
context 'when feature flag :ci_set_project_default_git_depth is disabled' do
let(:project) { create(:project) }
before do
stub_feature_flags(ci_set_project_default_git_depth: { enabled: false } )
end
it 'does not set default value for new records' do
expect(project.ci_cd_settings.default_git_depth).to eq(nil)
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