Skip to content

Change the way totalNotes is calculated

Igor Drozdov requested to merge id-change-total-notes-calculation into master

What does this MR do?

totalNotes is only used to prerender a number of skeleton containers until real notes are loaded

issuable.discussions makes multiple requests, so too expensive for this

This commit uses mere notes for this and sends actual totalNotes number if it's less than 10; otherwise, it sends 10 - it allows us to avoid bunch of skeleton prerenderings, which are not necessary since they doesn't fit into the whole screen and disappear quite fast

https://gitlab.com/gitlab-org/gitlab-ce/issues/66708

Edited by Igor Drozdov

Merge request reports