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
Léo-Paul Géneau
gitlab-ce
Commits
aa997e42
Commit
aa997e42
authored
Aug 31, 2017
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes
parent
02fed9a9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
+11
-4
app/controllers/boards/issues_controller.rb
app/controllers/boards/issues_controller.rb
+1
-1
app/helpers/boards_helper.rb
app/helpers/boards_helper.rb
+0
-1
app/models/board.rb
app/models/board.rb
+8
-0
app/services/boards/issues/list_service.rb
app/services/boards/issues/list_service.rb
+1
-1
app/services/issues/update_service.rb
app/services/issues/update_service.rb
+1
-1
No files found.
app/controllers/boards/issues_controller.rb
View file @
aa997e42
...
...
@@ -10,7 +10,7 @@ module Boards
def
index
issues
=
Boards
::
Issues
::
ListService
.
new
(
board_parent
,
current_user
,
filter_params
).
execute
issues
=
issues
.
page
(
params
[
:page
]).
per
(
params
[
:per
]
||
20
)
make_sure_position_is_set
(
issues
)
unless
Gitlab
::
Geo
.
secondary?
make_sure_position_is_set
(
issues
)
render
json:
{
issues:
serialize_as_json
(
issues
.
preload
(
:project
)),
...
...
app/helpers/boards_helper.rb
View file @
aa997e42
...
...
@@ -8,7 +8,6 @@ module BoardsHelper
boards_endpoint:
@boards_endpoint
,
lists_endpoint:
board_lists_url
(
board
),
board_id:
board
.
id
,
board_milestone_title:
board
&
.
milestone
&
.
title
,
disabled:
"
#{
!
can?
(
current_user
,
:admin_list
,
current_board_parent
)
}
"
,
issue_link_base:
build_issue_link_base
,
root_path:
root_path
,
...
...
app/models/board.rb
View file @
aa997e42
...
...
@@ -9,6 +9,14 @@ class Board < ActiveRecord::Base
true
end
def
parent
project
end
def
group_board?
false
end
def
backlog_list
lists
.
merge
(
List
.
backlog
).
take
end
...
...
app/services/boards/issues/list_service.rb
View file @
aa997e42
...
...
@@ -40,7 +40,7 @@ module Boards
end
def
set_parent
params
[
:project_id
]
=
p
rojec
t
.
id
params
[
:project_id
]
=
p
aren
t
.
id
end
def
set_state
...
...
app/services/issues/update_service.rb
View file @
aa997e42
...
...
@@ -54,7 +54,7 @@ module Issues
end
end
def
handle_move_between_i
i
ds
(
issue
)
def
handle_move_between_ids
(
issue
)
return
unless
params
[
:move_between_ids
]
after_id
,
before_id
=
params
.
delete
(
:move_between_ids
)
...
...
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