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
fc1a093d
Commit
fc1a093d
authored
Mar 05, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code: Service#find_by_template
Original commit
93e9793c
.
parent
31adccaf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
14 deletions
+0
-14
app/models/service.rb
app/models/service.rb
+0
-4
spec/fixtures/trace/sample_trace
spec/fixtures/trace/sample_trace
+0
-2
spec/models/service_spec.rb
spec/models/service_spec.rb
+0
-8
No files found.
app/models/service.rb
View file @
fc1a093d
...
...
@@ -319,10 +319,6 @@ class Service < ApplicationRecord
nil
end
def
self
.
find_by_template
find_by
(
template:
true
)
end
# override if needed
def
supports_data_fields?
false
...
...
spec/fixtures/trace/sample_trace
View file @
fc1a093d
...
...
@@ -2772,8 +2772,6 @@ Service
should return false by default
#deprecation_message
should be empty by default
.find_by_template
returns service template
#api_field_names
filters out sensitive fields
...
...
spec/models/service_spec.rb
View file @
fc1a093d
...
...
@@ -406,14 +406,6 @@ describe Service do
end
end
describe
'.find_by_template'
do
let!
(
:service
)
{
create
(
:service
,
template:
true
)
}
it
'returns service template'
do
expect
(
described_class
.
find_by_template
).
to
eq
(
service
)
end
end
describe
'#api_field_names'
do
let
(
:fake_service
)
do
Class
.
new
(
Service
)
do
...
...
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