- ๐บ๐ฆUkraine dr.osd
How can I make the module recalculate all the old ratings? I'm trying to implement an average rating for a node based on user ratings in comments. The Fivestar field in comments has existed for a long time and has accumulated ratings. Now, Iโve added this existing field to the node entity and configured everything according to the instructions. It works fine for new ratings in comments, but not for the old ones.
To make the module account for all the old ratings, I tried re-saving the comments. However, this results in the module counting only one rating from the most recently re-saved comment. That is, the average rating displays the value of the last comment's rating, and the counter always equals 1.
When I switch to new ratings, everything works almost correctly. The counter counts new ratings accurately and calculates the average rating properly. But when I re-save a new comment, its rating and counter are counted twice. Deleting a new comment with a rating doesnโt change anything.
Does anyone know how to make the counter and average rating recalculate all the comments with ratings, both old and new?
I have anonymous and not votes set to unlimited and try different versions of fivestar and votingapi.