ca884980ee
Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
16 lines
432 B
Ruby
16 lines
432 B
Ruby
# frozen_string_literal: true
|
|
|
|
class IssuableSidebarExtrasEntity < Grape::Entity
|
|
include RequestAwareEntity
|
|
include TimeTrackableEntity
|
|
|
|
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 :assignees, using: API::Entities::UserBasic
|
|
end
|