View Issue Details

IDProjectCategoryView StatusLast Update
5379Composrgalleriespublic2023-11-20 02:21
ReporterAdam Edington Assigned ToChris Graham  
PrioritynormalSeveritytrivial 
Status assignedResolutionopen 
Product Version10.0.43 
Summary5379: 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.
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

PDStig

2023-11-12 21:19

administrator   ~8035

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   ~8043

Last edited: 2023-11-14 20:10

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.

PDStig

2023-11-18 04:02

administrator   ~8054

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

PDStig

2023-11-20 02:20

administrator   ~8055

Last edited: 2023-11-20 02:21

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")

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

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