Skip to content

Fix link text from group context

Jarka Košanová requested to merge jk-group-mentions-fix into master

What does this MR do?

It calls reference with correct argument (project or newly group) when fetching it for a link text in banzai filter.

Additionally from_project variable was changed to from because there can be either project or group now.

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

We introduced referencing from group context as part of epics but change of link text was forgotten - the from argument was nil in case context[:project] was nil but context[:group] was a valid value. We need to pass context[:group] in this case.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

closes https://gitlab.com/gitlab-org/gitlab-ee/issues/4100

Merge request reports