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
272c9f11
Commit
272c9f11
authored
Dec 03, 2018
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust weight property to accomodate EE
parent
2674830e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
app/serializers/issue_board_entity.rb
app/serializers/issue_board_entity.rb
+0
-1
spec/fixtures/api/schemas/entities/issue_board.json
spec/fixtures/api/schemas/entities/issue_board.json
+1
-1
No files found.
app/serializers/issue_board_entity.rb
View file @
272c9f11
...
@@ -11,7 +11,6 @@ class IssueBoardEntity < Grape::Entity
...
@@ -11,7 +11,6 @@ class IssueBoardEntity < Grape::Entity
expose
:due_date
expose
:due_date
expose
:project_id
expose
:project_id
expose
:relative_position
expose
:relative_position
expose
:weight
,
if:
->
(
*
)
{
respond_to?
(
:weight
)
}
expose
:project
do
|
issue
|
expose
:project
do
|
issue
|
API
::
Entities
::
Project
.
represent
issue
.
project
,
only:
[
:id
,
:path
]
API
::
Entities
::
Project
.
represent
issue
.
project
,
only:
[
:id
,
:path
]
...
...
spec/fixtures/api/schemas/entities/issue_board.json
View file @
272c9f11
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"project_id"
:
{
"type"
:
"integer"
},
"project_id"
:
{
"type"
:
"integer"
},
"relative_position"
:
{
"type"
:
[
"integer"
,
"null"
]
},
"relative_position"
:
{
"type"
:
[
"integer"
,
"null"
]
},
"time_estimate"
:
{
"type"
:
"integer"
},
"time_estimate"
:
{
"type"
:
"integer"
},
"weight"
:
{
"type"
:
"integer"
},
"weight"
:
{
"type"
:
[
"integer"
,
"null"
]
},
"project"
:
{
"project"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
...
...
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