Controller Projects::IssuesController#related_branches.json executes more than 100 SQL queries
This controller executes more than 100 SQL queries, the maximum number of
queries allowed as per MR !16466 (merged).
The number of queries should be reduced to less than 100 and the corresponding
whitelisted sections of code (