Pagination not working for ratings/reviews

Help Discussion in 'BeerAdvocate Talk' started by duceswild, Jul 3, 2014.

Thread Status:
Not open for further replies.
  1. duceswild

    duceswild Pooh-Bah (2,108) Feb 8, 2010 Heard & McDonald Islands
    Pooh-Bah Trader

    Did a quick search and didn't see this mentioned before, but something I have noticed recently.

    On a beer profile page when there is a limited amount of reviews (less then or equal to 25) it doesn't appear to be breaking the total reviews + ratings across multiple pages even if the total number of ratings would put the beer over the 25 reviews + ratings threshold that is on each page.

    Here's an example of it working properly. You see multiple pages to flip through of ratings/reviews
    http://www.beeradvocate.com/beer/profile/287/37265/

    And an example of what I'm describing.
    http://www.beeradvocate.com/beer/profile/22564/76860/

    In the example you you are only given 1 page of ratings/review despite there being 41 ratings & 9 reviews. While I can see the older reviews by selecting the "Display Reviews Only" box, there doesn't appear to be able to see older ratings that don't appear on the first page.
     
  2. markdrinksbeer

    markdrinksbeer Initiate (0) Nov 14, 2013 Massachusetts

    If you notice, it doesn't show all of the ratings/reviews for your first example either. For me, it maxes out at 475-500 (that being the "last" of the pages I can get to...so it doesn't show all of the 2000+ ratings/reviews it has listed.

    I think I figured it out:

    the ratings and reviews page shows 25 per page.
    You can only see as many pages of combined ratings/reviews as their are reviews. So if a beer has less than 25 reviews, you can only see one total page of ratings/reviews. If a beer has 25-50 reviews, you can see a total of 2 pages of the most recent ratings/reviews.

    I tested this out with bells black note.

    it has 2000+ ratings and 486 reviews. By clicking "last" to get to the end of the reviews, I can only get to see the ratings/reviews for numbers 475-500.

    I am not sure why this is.
     
    #2 markdrinksbeer, Jul 3, 2014
    Last edited: Jul 3, 2014
    duceswild likes this.
  3. Todd

    Todd Founder (13,518) Aug 23, 1996 Finland
    STAFF Mod Team Society Pooh-Bah

    Thanks. I'll look into this when I get back.
     
    duceswild likes this.
  4. Todd

    Todd Founder (13,518) Aug 23, 1996 Finland
    STAFF Mod Team Society Pooh-Bah

    It just needed some code to be updated. This bug has been fixed.
     
    duceswild likes this.
Thread Status:
Not open for further replies.