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
2c00d592
Commit
2c00d592
authored
Aug 03, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move endpoint to list issues under lists resources
parent
1fa7274c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
9 deletions
+14
-9
app/controllers/projects/board_issues_controller.rb
app/controllers/projects/board_issues_controller.rb
+1
-1
config/routes.rb
config/routes.rb
+5
-2
spec/controllers/projects/board_issues_controller_spec.rb
spec/controllers/projects/board_issues_controller_spec.rb
+8
-6
No files found.
app/controllers/projects/board_issues_controller.rb
View file @
2c00d592
...
...
@@ -23,7 +23,7 @@ class Projects::BoardIssuesController < Projects::ApplicationController
private
def
filter_params
params
.
permit
(
:list_id
)
params
.
merge
(
id:
params
[
:list_id
]
)
end
def
move_params
...
...
config/routes.rb
View file @
2c00d592
...
...
@@ -857,8 +857,11 @@ Rails.application.routes.draw do
end
resource
:board
,
only:
[
:show
]
do
resources
:issues
,
only:
[
:index
,
:update
],
controller: :board_issues
resources
:lists
,
only:
[
:create
,
:update
,
:destroy
],
controller: :board_lists
resources
:issues
,
only:
[
:update
],
controller: :board_issues
resources
:lists
,
only:
[
:create
,
:update
,
:destroy
],
controller: :board_lists
do
resources
:issues
,
only:
[
:index
],
controller: :board_issues
end
end
resources
:todos
,
only:
[
:create
]
...
...
spec/controllers/projects/board_issues_controller_spec.rb
View file @
2c00d592
...
...
@@ -22,9 +22,7 @@ describe Projects::BoardIssuesController do
create
(
:labeled_issue
,
project:
project
,
labels:
[
development
])
create
(
:labeled_issue
,
project:
project
,
labels:
[
development
])
get
:index
,
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
.
to_param
,
list_id:
list2
.
to_param
list_issues
list_id:
list2
parsed_response
=
JSON
.
parse
(
response
.
body
)
...
...
@@ -35,13 +33,17 @@ describe Projects::BoardIssuesController do
context
'with invalid list id'
do
it
'returns a not found 404 response'
do
get
:index
,
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
.
to_param
,
id:
999
list_issues
list_id:
999
expect
(
response
).
to
have_http_status
(
404
)
end
end
def
list_issues
(
list_id
:)
get
:index
,
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
.
to_param
,
list_id:
list_id
.
to_param
end
end
describe
'PATCH #update'
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