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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
478b3d64
Commit
478b3d64
authored
Oct 07, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Boards::BaseService
parent
e171c1d8
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
10 additions
and
14 deletions
+10
-14
app/services/boards/base_service.rb
app/services/boards/base_service.rb
+0
-4
app/services/boards/create_service.rb
app/services/boards/create_service.rb
+1
-1
app/services/boards/issues/create_service.rb
app/services/boards/issues/create_service.rb
+1
-1
app/services/boards/issues/list_service.rb
app/services/boards/issues/list_service.rb
+1
-1
app/services/boards/issues/move_service.rb
app/services/boards/issues/move_service.rb
+1
-1
app/services/boards/list_service.rb
app/services/boards/list_service.rb
+1
-1
app/services/boards/lists/create_service.rb
app/services/boards/lists/create_service.rb
+1
-1
app/services/boards/lists/destroy_service.rb
app/services/boards/lists/destroy_service.rb
+1
-1
app/services/boards/lists/generate_service.rb
app/services/boards/lists/generate_service.rb
+1
-1
app/services/boards/lists/list_service.rb
app/services/boards/lists/list_service.rb
+1
-1
app/services/boards/lists/move_service.rb
app/services/boards/lists/move_service.rb
+1
-1
No files found.
app/services/boards/base_service.rb
deleted
100644 → 0
View file @
e171c1d8
module
Boards
class
BaseService
<
::
BaseService
end
end
app/services/boards/create_service.rb
View file @
478b3d64
module
Boards
class
CreateService
<
B
oards
::
B
aseService
class
CreateService
<
BaseService
def
execute
if
project
.
boards
.
empty?
create_board!
...
...
app/services/boards/issues/create_service.rb
View file @
478b3d64
module
Boards
module
Issues
class
CreateService
<
B
oards
::
B
aseService
class
CreateService
<
BaseService
def
execute
create_issue
(
params
.
merge
(
label_ids:
[
list
.
label_id
]))
end
...
...
app/services/boards/issues/list_service.rb
View file @
478b3d64
module
Boards
module
Issues
class
ListService
<
B
oards
::
B
aseService
class
ListService
<
BaseService
def
execute
issues
=
IssuesFinder
.
new
(
current_user
,
filter_params
).
execute
issues
=
without_board_labels
(
issues
)
unless
list
.
movable?
...
...
app/services/boards/issues/move_service.rb
View file @
478b3d64
module
Boards
module
Issues
class
MoveService
<
B
oards
::
B
aseService
class
MoveService
<
BaseService
def
execute
(
issue
)
return
false
unless
can?
(
current_user
,
:update_issue
,
issue
)
return
false
unless
valid_move?
...
...
app/services/boards/list_service.rb
View file @
478b3d64
module
Boards
class
ListService
<
B
oards
::
B
aseService
class
ListService
<
BaseService
def
execute
create_board!
if
project
.
boards
.
empty?
project
.
boards
...
...
app/services/boards/lists/create_service.rb
View file @
478b3d64
module
Boards
module
Lists
class
CreateService
<
B
oards
::
B
aseService
class
CreateService
<
BaseService
def
execute
(
board
)
List
.
transaction
do
label
=
project
.
labels
.
find
(
params
[
:label_id
])
...
...
app/services/boards/lists/destroy_service.rb
View file @
478b3d64
module
Boards
module
Lists
class
DestroyService
<
B
oards
::
B
aseService
class
DestroyService
<
BaseService
def
execute
(
list
)
return
false
unless
list
.
destroyable?
...
...
app/services/boards/lists/generate_service.rb
View file @
478b3d64
module
Boards
module
Lists
class
GenerateService
<
B
oards
::
B
aseService
class
GenerateService
<
BaseService
def
execute
(
board
)
return
false
unless
board
.
lists
.
movable
.
empty?
...
...
app/services/boards/lists/list_service.rb
View file @
478b3d64
module
Boards
module
Lists
class
ListService
<
B
oards
::
B
aseService
class
ListService
<
BaseService
def
execute
(
board
)
board
.
lists
end
...
...
app/services/boards/lists/move_service.rb
View file @
478b3d64
module
Boards
module
Lists
class
MoveService
<
B
oards
::
B
aseService
class
MoveService
<
BaseService
def
execute
(
list
)
@board
=
list
.
board
@old_position
=
list
.
position
...
...
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