Commit 528a0292 authored by Thong Kuah's avatar Thong Kuah

Revert "Fix EE not returning issue weights for boards"

This reverts commit 060ce28e.
parent 060ce28e
......@@ -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|
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment