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
8beedc4d
Commit
8beedc4d
authored
Jun 17, 2020
by
John Hope
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant methods from issuable_base_service
parent
5e470af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
app/services/issuable_base_service.rb
app/services/issuable_base_service.rb
+0
-23
No files found.
app/services/issuable_base_service.rb
View file @
8beedc4d
...
...
@@ -97,29 +97,6 @@ class IssuableBaseService < BaseService
params
.
delete
(
label_key
)
if
params
[
label_key
].
nil?
end
def
filter_labels_in_param
(
key
)
return
if
params
[
key
].
to_a
.
empty?
params
[
key
]
=
available_labels
.
id_in
(
params
[
key
]).
pluck_primary_key
end
def
find_or_create_label_ids
labels
=
params
.
delete
(
:labels
)
return
unless
labels
params
[
:label_ids
]
=
labels
.
map
do
|
label_name
|
label
=
Labels
::
FindOrCreateService
.
new
(
current_user
,
parent
,
title:
label_name
.
strip
,
available_labels:
available_labels
).
execute
label
.
try
(
:id
)
end
.
compact
end
def
labels_service
@labels_service
||=
::
Labels
::
AvailableLabelsService
.
new
(
current_user
,
parent
,
params
)
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