Optimize maximum user access level lookup in loading of notes
Loading
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
Optimize maximum user access level of lookup in loading of notes
Check the permission checks.
NotesHelper#note_editable?
and ProjectTeam#human_max_access
currently take about 16% of the load time of an issue page. This MR preloads the maximum access level of users for all notes in issues and merge requests with several queries instead of one per user and caches the result in RequestStore.
#15670 (moved), #19273 (closed)
master
(if you do - rebase it please)