View Issue Details

IDProjectCategoryView StatusLast Update
0005379Composrgalleriespublic2023-11-20 02:21
ReporterAdam EdingtonAssigned ToChris Graham 
SeverityTrivial-bug 
Status assignedResolutionopen 
Product Version10.0.43 
Fixed in Version 
Summary0005379: Top 10 block code not working
DescriptionTop 10 block code in POPULAR.tpl seems to be returning recent content rather than ordering by popularity.
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

Patrick Schmalstig

2023-11-12 21:19

administrator   ~0008035

Is ratings enabled? The block by design uses most recent instead of top 10 when ratings are disabled because without ratings there is no metric for determining "top" galleries.

Adam Edington

2023-11-14 20:09

administrator   ~0008043

Last edited: 2023-11-14 20:10

View 2 revisions

Reviews were enabled, which include ratings (might not be the same, kinda weird having 2 different methods of rating potentially available). I recall that regardless of the ratings being enabled or not that all blocks show up on root but the Top 10 code was ordering by latest (which as you've explained is likely intentional). You can leave this one be as I've since deleted the install and can't refer to it.

Patrick Schmalstig

2023-11-18 04:02

administrator   ~0008054

I think I found the issue. The block is using the wrong parameters. I'll push a hotfix as soon as I can.

Patrick Schmalstig

2023-11-20 02:20

administrator   ~0008055

Last edited: 2023-11-20 02:21

View 2 revisions

GALLERY_POPULAR is using the wrong parameter: "mode" when it should be using "sort". However, beyond that, it's still not ordering by rating, and I have no idea why. SQL looks fine to me.

(also "top" is not a valid sorting mechanism... it should be "average_rating")

Issue History

Date Modified Username Field Change
2023-03-25 16:09 Adam Edington New Issue
2023-11-12 21:19 Patrick Schmalstig Note Added: 0008035
2023-11-14 20:09 Adam Edington Note Added: 0008043
2023-11-14 20:10 Adam Edington Note Edited: 0008043 View Revisions
2023-11-18 04:02 Patrick Schmalstig Note Added: 0008054
2023-11-20 02:19 Patrick Schmalstig Assigned To => Chris Graham
2023-11-20 02:19 Patrick Schmalstig Status non-assigned => assigned
2023-11-20 02:20 Patrick Schmalstig Note Added: 0008055
2023-11-20 02:21 Patrick Schmalstig Note Edited: 0008055 View Revisions