recipes ratings are broken

Case number:671076-987176
Topic:Server
Opened by:ilya.makedon
Status:Closed
Type:Bug
Opened on:Monday, January 4, 2010 - 20:10
Last modified:Thursday, January 14, 2010 - 01:01

The votes don't seem to work at all any more. When I go to a recipe page (for example recipe/2052) and click on the starts "vote saved" message briefly appears followed by the display of my rating. When I refresh the page "no votes yet" appears instead of my rating.

(Mon, 01/04/2010 - 20:10  |  1 comment)


Joined: 11/14/2009
Groups: None
Status: Open » Closed

The problems was that the voting api cache was not getting recalculated. When the user submitted the vote it was stored in the vote api table but not propagated to the cache table. However, when page is loaded, voting information is read from the cache table.

To resolve the problem I changed the voting api settings to recalculate the stats for the content after every vote. I also wrote a module called votecalc that recomputed all the votes for all the content. Somehow all the old votes in the voting api table never got calculated into the cache.

This also fixed the strange behavior of the the voting in the feedback pages.

Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons