Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-17 15:01:24 +0300
committerPhil Hughes <me@iamphill.com>2017-05-17 15:01:24 +0300
commit907dd68e0a18e995dc5772c9bc8117aa150edc25 (patch)
treef44f01a72ac5b305f7a2fc0dd3c90b992c2db165 /app/serializers/issue_entity.rb
parent4fcff0bfa2f0d8b0a9f60e93bee807334557918f (diff)
Added move to project in issue inline edit form
[ci skip]
Diffstat (limited to 'app/serializers/issue_entity.rb')
-rw-r--r--app/serializers/issue_entity.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/issue_entity.rb b/app/serializers/issue_entity.rb
index bc4f68710b2..6bc8d0f70c3 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
@@ -7,4 +9,8 @@ class IssueEntity < IssuableEntity
expose :project_id
expose :milestone, using: API::Entities::Milestone
expose :labels, using: LabelEntity
+
+ expose :path do |issue|
+ namespace_project_issue_path(issue.project.namespace, issue.project, issue)
+ end
end