diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-06-01 12:16:17 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-06-01 12:16:17 +0300 |
commit | b73ff4f671db9d2d4c165e6523c82b1090664a93 (patch) | |
tree | 5a1d9abe227f2b17f3ea9c69da4cad6c098ec18f /app/serializers | |
parent | 848b219732c9bd48adacd74d05f0cd27b78725c3 (diff) | |
parent | 4e46b1c854db32f2b2f4378d8b6da885fa794424 (diff) |
Merge branch 'ee-issue-edit-inline' into 'master'
Port of issue-edit-inline to EE
See merge request !2010
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/issue_entity.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/issue_entity.rb b/app/serializers/issue_entity.rb index dc85232499d..41a019bc584 100644 --- a/app/serializers/issue_entity.rb +++ b/app/serializers/issue_entity.rb @@ -1,4 +1,6 @@ class IssueEntity < IssuableEntity + include RequestAwareEntity + expose :branch_name expose :confidential expose :assignees, using: API::Entities::UserBasic @@ -8,4 +10,8 @@ class IssueEntity < IssuableEntity expose :weight expose :milestone, using: API::Entities::Milestone expose :labels, using: LabelEntity + + expose :web_url do |issue| + namespace_project_issue_path(issue.project.namespace, issue.project, issue) + end end |