Pagination: last post doesn't get to correct page
-
My testing was done: https://what.thedailywtf.com/topic/21483/testing-omething-with-pagination
I'm set to 20 per page.
When I posted "this is the number 20", it streamed in on Page 1, with no pagination controls.
When I posted "this is the number 21", it streamed in on Page 2, and the pagination controls appeared.
This, so far, is correct.
When I clicked "next page", and went to page 2, I see "this is the number 20" and "this is the number 21".
This is not correct.
When I paged back to Page 1, the last post I see is "this is the number 19".
Something is screwy there. I would expect to see:
Page 1: "This is the number 1" through "this is the number 20"
Page 2: "This is the number 21" and beyond.
-
@Lorne-Kates Your counter is off after #8 due to someone else posting in your topic.
Your post with "this is number 19" is actually post #20, which should be the last post of page 1, and your post with "this is number 20" is actually post #21, which should be the first post on page 2. That is the case.
The only bug you may have there is this:
@Lorne-Kates said in Pagination: last post doesn't get to correct page:
When I posted "this is the number 20", it streamed in on Page 1, with no pagination controls.
Considering it was post #21 in the topic, it should've
streamed in on Page 2, and the pagination controls appeared.
-
@ChaosTheEternal said in Pagination: last post doesn't get to correct page:
Your post with "this is number 19" is actually post #20, which should be the last post of page 1, and your post with "this is number 20" is actually post #21, which should be the first post on page 2. That is the case.
Fuckign hell, I thought I increased the count to accommodate.
The only bug you may have there is this:
Yes, well, that is the reason I kicked off the test. I made a post in another topic, saw it stream in, clicked "next", and saw my post again.
-
Protip: next time, set the posts-per-page to something lower like 5 so you don't have as much time between the start and end of the test and it's less likely that someone fucks it up.
-
@ben_lubar said in Pagination: last post doesn't get to correct page:
Protip: next time, set the posts-per-page to something lower like 5 so you don't have as much time between the start and end of the test and it's less likely that someone fucks it up.
How do I know it wasn't having it set to 20 (my standard setting) that was the issue?
Also, I don't like changing settings. There's a non-zero chance I can't set it back.
-
@Lorne-Kates said in Pagination: last post doesn't get to correct page:
Also, I don't like changing settings. There's a non-zero chance I can't set it back.
that's why i have several sockpuppets to test with.
-
@ChaosTheEternal said in Pagination: last post doesn't get to correct page:
due to someone else posting in your topic.
There's always one.
-
@PJH said in Pagination: last post doesn't get to correct page:
There's always one.
/me whistles innocently
-
I noticed this a while back. It paginates them correctly now, but streaming in is still broken. Also, links to posts are broken if it's the first post on a page... the link goes to the previous page instead. (Assuming there is a previous page, i.e. it's not the topic starter post.)
edit: then again, that latter bug appears to be fixed now. I definitely noticed it today, so it must've been the latest update.
-
@Lorne-Kates said in Pagination: last post doesn't get to correct page:
When I clicked "next page", and went to page 2, I see "this is the number 20" and "this is the number 21".
This is not correct.I've reproduced this bug.
-
@xaade said in Pagination: last post doesn't get to correct page:
@Lorne-Kates said in Pagination: last post doesn't get to correct page:
When I clicked "next page", and went to page 2, I see "this is the number 20" and "this is the number 21".
This is not correct.I've reproduced this bug.
I've reproduced this bug, but could not fit the solution into the margin.
Thankfully, because of the bug, it repeats in the very next margin, which is bigger.
-
@anotherusername said in Pagination: last post doesn't get to correct page:
It paginates them correctly now, but streaming in is still broken.
Probably related to this: