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
Boxiang Sun
gitlab-ce
Commits
a8b2d7f3
Commit
a8b2d7f3
authored
Aug 04, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return Issue#iid instead of id when listing issues
parent
c14ac835
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/projects/board_issues_controller.rb
app/controllers/projects/board_issues_controller.rb
+1
-1
spec/fixtures/api/schemas/issue.json
spec/fixtures/api/schemas/issue.json
+2
-2
No files found.
app/controllers/projects/board_issues_controller.rb
View file @
a8b2d7f3
...
...
@@ -7,7 +7,7 @@ class Projects::BoardIssuesController < Projects::ApplicationController
issues
=
Boards
::
Issues
::
ListService
.
new
(
project
,
current_user
,
filter_params
).
execute
issues
=
issues
.
page
(
params
[
:page
])
render
json:
issues
.
as_json
(
only:
[
:id
,
:title
,
:confidential
],
include:
{
labels:
{
only:
[
:id
,
:title
,
:color
]
}
})
render
json:
issues
.
as_json
(
only:
[
:i
i
d
,
:title
,
:confidential
],
include:
{
labels:
{
only:
[
:id
,
:title
,
:color
]
}
})
end
def
update
...
...
spec/fixtures/api/schemas/issue.json
View file @
a8b2d7f3
{
"type"
:
"object"
,
"required"
:
[
"id"
,
"i
i
d"
,
"title"
,
"confidential"
],
"properties"
:
{
"id"
:
{
"type"
:
"integer"
},
"i
i
d"
:
{
"type"
:
"integer"
},
"title"
:
{
"type"
:
"string"
},
"confidential"
:
{
"type"
:
"boolean"
},
"labels"
:
{
...
...
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