Commit b2ac92f3 authored by Wei-Meng Lee's avatar Wei-Meng Lee

Fix error when reordering/deleting subgroup epics

parent 93bf5d67
...@@ -14,6 +14,6 @@ class LinkedEpicEntity < Grape::Entity ...@@ -14,6 +14,6 @@ class LinkedEpicEntity < Grape::Entity
end end
expose :relation_path do |epic| expose :relation_path do |epic|
group_epic_link_path(epic.group, request.issuable.iid, epic.id) group_epic_link_path(request.issuable.group, request.issuable.iid, epic.id)
end end
end end
---
title: Fix error when reordering/deleting subgroup epics
merge_request: 11837
author:
type: fixed
...@@ -18,7 +18,7 @@ describe EpicLinks::ListService, :postgresql do ...@@ -18,7 +18,7 @@ describe EpicLinks::ListService, :postgresql do
state: epic.state, state: epic.state,
reference: epic.to_reference(group), reference: epic.to_reference(group),
path: "/groups/#{epic.group.full_path}/-/epics/#{epic.iid}", path: "/groups/#{epic.group.full_path}/-/epics/#{epic.iid}",
relation_path: "/groups/#{epic.group.full_path}/-/epics/#{parent_epic.iid}/links/#{epic.id}" relation_path: "/groups/#{parent_epic.group.full_path}/-/epics/#{parent_epic.iid}/links/#{epic.id}"
} }
end 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