Fixes merge request creations page creating a large uploads query
What does this MR do and why?
Fixes a large uploads query from being run on the merge request creations page. This gets caused by the amount of target projects that we fetch on that page. On the GitLab project this query can take 1.5s to run which this change it should be significantly reduced.
Screenshots or screen recordings
How to set up and validate locally
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.