Mod Archive Forums

Website => Help & Support => Help Support Topics Archive => Topic started by: Uncertain on September 01, 2019, 22:01:33

Title: Module ratings not updating properly
Post by: Uncertain on September 01, 2019, 22:01:33
This is a minor issue, but one I've noticed during the few months I've been on TMA.

Ratings on some module pages and/or module lists don't always update properly, either displaying an outdated value or no rating at all. I've checked some modules every once in a while to see if this was temporary, but I can officially say that's not the case.
Title: Re: Module ratings not updating properly
Post by: Saga Musix on September 01, 2019, 22:52:49
Can you provide some examples where this is the case? I know this was broken for a while so maybe it's just the modules that were rated during that time.
Title: Re: Module ratings not updating properly
Post by: Nikku4211 on September 02, 2019, 03:21:34

Can you provide some examples where this is the case? I know this was broken for a while so maybe it's just the modules that were rated during that time.



This module has a 6/10 despite there being no comment or review. (https://modarchive.org/module.php?183975)
And this one, too. (https://modarchive.org/module.php?183665)
And this one. (https://modarchive.org/module.php?183326)
And this one as well. (https://modarchive.org/module.php?183365)


This module has a 7/10 despite there, again, being no comment or review. (https://modarchive.org/module.php?183792)

And this one, too. (https://modarchive.org/module.php?183673)


This module has a 6/10 despite the only comment on it giving a 7/10. (https://modarchive.org/module.php?183741)


This module has an 8/10 despite the only comment on it giving a 10/10. (https://modarchive.org/module.php?183269)


Dang. Soooo many of my modules are affected by this issue.
Title: Re: Module ratings not updating properly
Post by: Saga Musix on September 03, 2019, 22:22:24
Okay, in that specific case it seems to be modules that have received a rating by an account whose comments have been removed. I'll see what I can do about it. Note that in this case, anytime someone adds a new comment the average score will get updated again.
Title: Re: Module ratings not updating properly
Post by: Uncertain on September 04, 2019, 03:52:51
Okay, in that specific case it seems to be modules that have received a rating by an account whose comments have been removed.

It also affects newer modules I've rated as soon as they got added. Here's one example among many modules in my favorites:

(https://i.imgur.com/eD2rc5A.png)
Title: Re: Module ratings not updating properly
Post by: Saga Musix on September 04, 2019, 12:57:40
I forced re-calculation of all scores. This doesn't solve the root cause of the problem, which has not been found yet, but at least for now the scores will be correct again.
Title: Re: Module ratings not updating properly
Post by: Nikku4211 on September 04, 2019, 18:57:55
Okay, in that specific case it seems to be modules that have received a rating by an account whose comments have been removed. I'll see what I can do about it. Note that in this case, anytime someone adds a new comment the average score will get updated again.
I forced re-calculation of all scores. This doesn't solve the root cause of the problem, which has not been found yet, but at least for now the scores will be correct again.


Thanks, SaGa.