Skip to content

Avoid calculation of closes_issues.

Paco Guzman requested to merge retrieve-mr-closes-issues-just-when-required into master

What does this MR do?

Avoid unneeded calls to MR closes issues

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

I'm not sure if calling this method from a view is a good practice, but I cannot see another simple way of avoiding this problem. In case we want to avoid this in the controller we need to specify the action, format and status of the merge request, because in that case we know that the _open partial will render. We could add some lazy evaluation but it not a thing I see in use along the app but feedback is welcome

What are the relevant issue numbers?

#14202 (moved) , #19490 (closed)

Does this MR meet the acceptance criteria?

Merge request reports

Loading