[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:
Sangeetha 2025-08-20 18:54:32 +05:30 committed by GitHub
parent 7e15fcc080
commit 008e048968
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 76 additions and 35 deletions

View file

@ -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