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

Merge branch '6650-extract-ee-specific-files-lines-for-discussion-app-serializers' into 'master'

Resolve "Extract EE specific files/lines for Discussion app/serializers"

Closes #6650

See merge request gitlab-org/gitlab-ee!6762
parents 7ceec100 629fd171
......@@ -2,6 +2,7 @@
class IssueEntity < IssuableEntity
include TimeTrackableEntity
prepend ::EE::IssueEntity
expose :state
expose :milestone_id
......@@ -18,9 +19,6 @@ class IssueEntity < IssuableEntity
expose :due_date
expose :moved_to_id
expose :project_id
expose :weight, if: ->(issue, _) { issue.supports_weight? }
expose :milestone, using: API::Entities::Milestone
expose :labels, using: LabelEntity
expose :web_url do |issue|
project_issue_path(issue.project, issue)
......
# frozen_string_literal: true
module EE
module IssueEntity
extend ActiveSupport::Concern
prepended do
expose :weight, if: ->(issue, _) { issue.supports_weight? }
end
end
end
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