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
528a0292
Commit
528a0292
authored
Nov 09, 2018
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Fix EE not returning issue weights for boards"
This reverts commit
060ce28e
.
parent
060ce28e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
app/serializers/issue_board_entity.rb
app/serializers/issue_board_entity.rb
+1
-1
ee/spec/controllers/boards/issues_controller_spec.rb
ee/spec/controllers/boards/issues_controller_spec.rb
+0
-9
No files found.
app/serializers/issue_board_entity.rb
View file @
528a0292
...
...
@@ -11,7 +11,7 @@ class IssueBoardEntity < Grape::Entity
expose
:due_date
expose
:project_id
expose
:relative_position
expose
:weight
,
if:
->
(
instance
,
_
)
{
instance
.
respond_to?
(
:weight
)
}
expose
:weight
,
if:
->
(
*
)
{
respond_to?
(
:weight
)
}
expose
:time_estimate
expose
:project
do
|
issue
|
...
...
ee/spec/controllers/boards/issues_controller_spec.rb
View file @
528a0292
...
...
@@ -49,15 +49,6 @@ describe Boards::IssuesController do
expect
(
parsed_response
[
'issues'
].
length
).
to
eq
2
expect
(
development
.
issues
.
map
(
&
:relative_position
)).
not_to
include
(
nil
)
end
it
'returns issues with weight attribute'
do
create
(
:labeled_issue
,
project:
project_1
,
labels:
[
planning
],
weight:
3
)
list_issues
user:
user
,
board:
board
,
list:
list1
parsed_response
=
JSON
.
parse
(
response
.
body
)
expect
(
parsed_response
[
'issues'
].
first
[
"weight"
]).
to
eq
3
end
end
context
'with invalid list id'
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