Change the way totalNotes is calculated
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
Edited by Igor Drozdov