WebGUI
      Click here to register.
      
View Cart (0)
IRC banner

View All Tickets
Thread.threadRating & Post.rating  (#3174)
Issue

In Collaboration System value of a rating in Thread and Collaboration sometimes does not coincide. As far as I remember, in the winter it corrected, the additional column in a database has been added. Nevertheless, sometimes value in these columns (Thread.threadRating & Post.rating) can sometimes not coincide themselves and with amount of voices (table: Post_rating). At a divergence of values I have not noticed any law.

I tried manually to count voices (it the table: Post_rating) and to correct value directly in base (Thread.threadRating & Post.rating), but in due course values again started to differ.

It occurs not to all records, but only with the some from them.


Vladimir Vitkovsky
http://www.webgui.uanet.biz/
http://www.transport.su/

 

Solution Summary
Comments
Graham
0
7/23/2007 2:04 pm
I'm not able to reproduce this issue.  Is there any additional information you can provide?  Is there anything that could be interfering with the operation of the collaboration system?  Does this tend to happen more with large or small threads?
Vitkovsky
0
7/24/2007 5:24 pm

This is rather a not small like intranet portal (assets-9334, users-1183, groups-3642). Sometimes we add contest. CS has not more then 10 threads. Thread has no more then 10 posts.

I can send you url, login and password if you'll agree to look at example of that i was described.


Vladimir Vitkovsky
http://www.webgui.uanet.biz/
http://www.transport.su/

 

preaction
0
8/14/2007 1:48 pm
Taking a look at
preaction
0
8/14/2007 5:58 pm

So what we have here are three different "cached" ratings, and a master Post_rating table.

The Collaboration's rating is an average of all the Thread ratings, A Thread's rating is the sum of all the Post ratings, and a Post's rating is all the Post_rating.rating values for the asset.

I've posted a fix to some portions of the rating system that were not working correctly, which should fix the problem.

I'm attaching a script that will determine if you have any Threads that do not have the correct rate. It belongs in the WebGUI/sbin folder and requires a --configFile=<your webgui config> option.

If, after 7.4.3 is released and you've updated, this script still returns threads with wrong ratings, let me know.

Closing as resolved. 

Vitkovsky
0
8/19/2007 8:36 am

I've upgraded to 7.4.3 and started script:

[root@mail sbin]# ./checkRating.pl --configFile=name_of_configfile.conf

###------- a lot of lines -------

DONE: 380 errors out of 3322 threads
[root@mail sbin]#

I tride the same on the some enother servers: I got less errors, but errors are.


Vladimir Vitkovsky
http://www.webgui.uanet.biz/
http://www.transport.su/

 

preaction
0
9/7/2007 9:10 am
Looking into this one
preaction
0
9/7/2007 11:37 am

Looks like I didn't submit my changes last time, but I did this time. Sorry for the inconvenience.

When 7.4.6 is released, please upgrade and run that script after a few days (or more) and let me know when errors start to occur.

Fixed in 7.4.6. Closing as resolved. 

Details
Ticket Status Closed  
Rating0.0 
Submitted ByVitkovsky 
Date Submitted2007-06-01 
Assigned To unassigned  
Date Assigned2008-12-01 
Assigned By 
Severity Minor (annoying, but not harmful)  
What's the bug in?  
WebGUI / WRE Version  
URLbugs/tracker/thread_threadrating--post_rating
Keywords
Related Files
Ticket History