Skip to content

Move slot content from RelatedIssuesList to RelatedIssuableItem

What does this MR do?

This MR is for the related issues block on the Issues page. RelatedIssuesList renders a list of RelatedIssuableItems:

RelatedIssuesList RelatedIssuableItem
ksnip_20200729-032252 ksnip_20200729-032309

RelatedIssuableItem is used in three places:

The component has two slots, dueDate and weight, but only related_issues_list.vue passes down slot content. I believe this was done to prevent the two latter merge request components from trying to display the due date and weight, but merge requests inherently don't have a due date or weight, and they won't have these properties in their data:

ksnip_20200729-044011

As a result, there's no real reason to use slots here, so I moved the slot code directly into RelatedIssuableItem.

Related issues with related MR
Screenshot_from_2020-07-29_04-13-17

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Daniel Tian

Merge request reports