Skip to content

Move shared code for related epic links

What does this MR do and why?

This is part of the backend work to implement related epics widget. Related epics should work the same as related issues widget on EE which means they will have shared code. This MR consists of moving functionality from EE::IssueLink
into a shared concern EE::IssuableLink to be re-used by EE::RelatedEpicLink.

related to #353234 (closed)

For database reviewers(if needed)

No queries are being changed on this MR. We have new ones added for related_epic_links table, but
both tables have the same fields and the same indexes, please take a look at $2261319. The difference is that one is referencing issues and the other epics on source_id and target_id columns.

Related epics widget is also not available yet, so we do not have data to analyze for now.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Felipe Artur

Merge request reports