Skip to main content
2 of 3
Added pseudocode
Vyktor
  • 21k
  • 13
  • 11

Show only "available" review count

I've already found question about "number of suggested edits being different" in site header and actual counts in queue.

Shouldn't the number in the header (164 in the screenshot bellow) reflect only the number of reviews available to me?

Review count

In this particular screenshot the number should be ~164-88 in my opinion. This way I have no way of knowing (without leaving current page) whether there are other queues "full" or just the ones I cannot participate in at that moment.

Assuming current counter works like this:

types = (Low Quality, First Posts, ...)
result = sum(approx_review_count(type) for type in types)

And I think it should work like this:

result = 0
types = (Low Quality, First Posts, ...)
for type in types:
    if user_has_votes_remaining(user, type): # 
        result += approx_review_count(type)

where approx_review_count returns cached number of reviews for given type and user_has_votes_remaining returns false if user has no "votes" left for given type (sees come back in xxx hours message)

Vyktor
  • 21k
  • 13
  • 11