[WEB-4430] fix: incorrect WI count while scrolling (#7596)
* fix: wrong WI count while scrolling * chore: optimize issue queryset * fix: use separate query for total_count_queryset * fix: guest visibility constraint * fix: use separate query for total_count_queryset in external api * fix: use queryset.count()
This commit is contained in:
parent
7e15fcc080
commit
008e048968
4 changed files with 76 additions and 35 deletions
|
|
@ -160,7 +160,7 @@ class OffsetPaginator:
|
|||
total_count = (
|
||||
self.total_count_queryset.count()
|
||||
if self.total_count_queryset
|
||||
else results.count()
|
||||
else queryset.count()
|
||||
)
|
||||
|
||||
# Check if there are more results available after the current page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue