blob: ff23d8bf0c703511dd03548be3155f4d3c8a11df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class IssuableSidebarEntity < Grape::Entity
include RequestAwareEntity
expose :participants, using: ::API::Entities::UserBasic do |issuable|
issuable.participants(request.current_user)
end
expose :subscribed do |issuable|
issuable.subscribed?(request.current_user, issuable.project)
end
expose :time_estimate
expose :total_time_spent
expose :human_time_estimate
expose :human_total_time_spent
end
|