Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f838c7e8
Commit
f838c7e8
authored
Apr 28, 2020
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove FF ci_set_project_default_git_depth
This commit removes the FF
parent
d58353db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
app/models/project_ci_cd_setting.rb
app/models/project_ci_cd_setting.rb
+0
-2
spec/models/project_ci_cd_setting_spec.rb
spec/models/project_ci_cd_setting_spec.rb
+0
-12
No files found.
app/models/project_ci_cd_setting.rb
View file @
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
...
...
spec/models/project_ci_cd_setting_spec.rb
View file @
f838c7e8
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment