diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-26 06:09:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-26 06:09:21 +0300 |
commit | 47ef8c6c530ee1cac0e1046b098755ec949da894 (patch) | |
tree | d09c3d5598aad53c0f2c721ce237ff8b1db5f7ec /app/serializers | |
parent | eb90b0642d7949bfa03c8e9b5f39d211934fb0b5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/linked_issue_entity.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/serializers/linked_issue_entity.rb b/app/serializers/linked_issue_entity.rb index 769e3ed7310..4a28213fbac 100644 --- a/app/serializers/linked_issue_entity.rb +++ b/app/serializers/linked_issue_entity.rb @@ -3,6 +3,10 @@ class LinkedIssueEntity < Grape::Entity include RequestAwareEntity + format_with(:upcase) do |item| + item.try(:upcase) + end + expose :id, :confidential, :title expose :assignees, using: UserEntity @@ -21,6 +25,11 @@ class LinkedIssueEntity < Grape::Entity Gitlab::UrlBuilder.build(link, only_path: true) end + expose :issue_type, + as: :type, + format_with: :upcase, + documentation: { type: "String", desc: "One of #{::WorkItems::Type.base_types.keys.map(&:upcase)}" } + expose :relation_path expose :due_date, :created_at, :closed_at |