11

In my network profile inbox I have lots of items. Wanted to see the first items I got so clicked the last page:

Just to be greeted with cryptic and misleading "No inbox items":

I don't want to click "next" 522 times. Can this please be fixed?

On further investigation using the direct URLs (which are normally loaded via AJAX) I found the last page is actually 521 and it contains exactly 20 items.

Edit: now that I got more items, I can indeed see the last page so the previous assumption is proved: page count is incorrect if last page has 20 items exactly.

11
  • No repro here. I can go to the last page easily (by clicking on the last page number).
    – Himanshu
    Commented Dec 2, 2013 at 9:09
  • @hims056 just wait until the last page will have 20 items (i.e. (total items % 20 == 0) ;) Commented Dec 2, 2013 at 9:12
  • @hims056 I can help you with that, how much more you need? (Will post comments on posts of yours then delete after you confirm it's happening) Commented Dec 2, 2013 at 9:13
  • 5 more to go...
    – Himanshu
    Commented Dec 2, 2013 at 9:13
  • Stupid rate limit... please be patient Commented Dec 2, 2013 at 9:14
  • It seems the global inbox is cached as well.
    – Himanshu
    Commented Dec 2, 2013 at 9:15
  • @hims056 done! 5 items should be added, cache or no cache :) Commented Dec 2, 2013 at 9:17
  • 1
    Reproduced now...
    – Himanshu
    Commented Dec 2, 2013 at 9:22
  • 1
    @hims056 finally! ;) Commented Dec 2, 2013 at 9:23
  • Another issue is that there is no pagination button if there is no inbox item on that page.
    – Himanshu
    Commented Dec 2, 2013 at 9:24
  • @hims056 yeah, that message is AJAX response that actually means "there are no inbox items for page [page here]" Commented Dec 2, 2013 at 9:28

1 Answer 1

7
+50

It pains me to remove an "off by one" error, but if I must, I must.

3
  • Thanks! Is this already on production? I still see same issue here... (source, which I assumed is the same root cause behind those two.) Commented Jan 25, 2017 at 20:29
  • @ShadowWizard Same bug, two different places. I'm rolling out a fix for the favorites tab as well.
    – Adam Lear StaffMod
    Commented Jan 25, 2017 at 21:11
  • @AdamLear the same problem is occurring with the All Questions page. See here.
    – Ollie
    Commented Sep 13, 2020 at 21:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .