Commit f5bc387d authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in lib/api/entities.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ebb04aab
...@@ -894,25 +894,23 @@ module API ...@@ -894,25 +894,23 @@ module API
expose :id expose :id
expose :project, using: Entities::BasicProjectDetails expose :project, using: Entities::BasicProjectDetails
<<<<<<< HEAD
# EE-specific
# Default filtering configuration
expose :name
expose :group
expose :milestone, using: Entities::Milestone, if: -> (board, _) { scoped_issue_available?(board) }
expose :assignee, using: Entities::UserBasic, if: -> (board, _) { scoped_issue_available?(board) }
expose :labels, using: Entities::LabelBasic, if: -> (board, _) { scoped_issue_available?(board) }
expose :weight, if: -> (board, _) { scoped_issue_available?(board) }
=======
>>>>>>> upstream/master
expose :lists, using: Entities::List do |board| expose :lists, using: Entities::List do |board|
board.lists.destroyable board.lists.destroyable
end end
# EE-specific START
def scoped_issue_available?(board) def scoped_issue_available?(board)
board.parent.feature_available?(:scoped_issue_board) board.parent.feature_available?(:scoped_issue_board)
end end
# Default filtering configuration
expose :name
expose :group
expose :milestone, using: Entities::Milestone, if: -> (board, _) { scoped_issue_available?(board) }
expose :assignee, using: Entities::UserBasic, if: -> (board, _) { scoped_issue_available?(board) }
expose :labels, using: Entities::LabelBasic, if: -> (board, _) { scoped_issue_available?(board) }
expose :weight, if: -> (board, _) { scoped_issue_available?(board) }
# EE-specific END
end end
class Compare < Grape::Entity class Compare < Grape::Entity
......
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