Slow branch picker when creating a merge request (many branches) - Projects::MergeRequests::CreationsController#new
Currently, group/project/merge_requests/new
(Projects::MergeRequests::CreationsController#new
) renders all branches server-side rendered for the dropdowns. This becomes a problem when a project has 20,000 branches and the DOM becomes unresponsive.
Potential Solutions
Only return the first 50 branches and add remote filtering. This is what is what we currently do for listing projects when you want to move an issue which also uses gl_dropdown
.
Relevant ticket (for internal use only), https://gitlab.zendesk.com/agent/tickets/81962
For actual POST
creation slow-ness, see