An error occurred while fetching the assigned milestone of the selected merge_request.
Refactor user authorization check for a single project to avoid querying all user projects
Loading
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
Refactor user authorization check for a single project to avoid querying all user projects
Is there any alternative to duplicating the logic of Users#authorized_projects
on Project#authorized_for_user
?
Users#authorized_projects
is slow, and we are calling it unnecessarily when we are already scoped to a single project.
#18586 (closed) (but it doesn't close it, it doesn't actually changes Users#authorized_projects
, so it's still slow, but it does reduce it's uses)
master
(if you do - rebase it please)