N+1 problems on milestone page

What does this MR do?

Fixes N+1 problems on a project milestone page as follows:

  1. Avoid to repeat namespace querying on project milestone (cf. !10871 (merged))
  2. Remove issuable drag-n-drop and sorting from milestone view completely (introduced in !7113 (merged) (#13670 (closed)), but later incompletely removed in !11950 (merged))
  3. Remove some pieces of duplicated code

Are there points in the code the reviewer needs to double check?


Why was this MR needed?

A project milestone page is very slow. e.g., https://gitlab.com/gitlab-org/gitlab-ce/milestones/37

Screenshots (if relevant)


Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #34736 (closed)

Edited by username-removed-100770

Merge request reports