Avoid calculation of closes_issues.
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?
-
CHANGELOG entry added [ ] Documentation created/updated[ ] API support added- Tests
[ ] Added for this feature/bug-
All builds are passing
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together