This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198470

Summary: Plugin voting buggy
Product: updatecenters Reporter: Peter Nabbefeld <epdv>
Component: PluginportalAssignee: Jan Pirek <jpirek>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Peter Nabbefeld 2011-05-10 10:09:46 UTC
I've tried to vote for the "Geronimo 2" plugin. As it seems not to be actively developed (other than e.g. some api-related upgrades) and it seems not to support Geronimo server versions other than 2.0.2, I wanted to vote for it as "bad", so clicked on the left star.

Unexpectedly, the voting result is 3.3, though the statistic said, no user has voted before.
Comment 1 Peter Nabbefeld 2011-05-10 10:15:04 UTC
BTW, the "rating" comment is:

Rating: 3.3, by 1 users
You already rated: 1
Comment 2 Jiri Kovalsky 2011-05-10 12:55:11 UTC
Yes, this is as designed Peter. When the number of votes is small (no matter good or bad) the rating is normalized towards the average = 3 although I would expect 2.7 in your case and not 3.3.

Honzo, can you please clarify this? Thanks!
Comment 3 Peter Nabbefeld 2011-05-10 13:05:10 UTC
(In reply to comment #2)
> Yes, this is as designed Peter. When the number of votes is small (no matter
> good or bad) the rating is normalized towards the average = 3 although I would
> expect 2.7 in your case and not 3.3.
> 
Then there should be a hint, at least, as this mechanism makes a rating looking better, though I do understand the intent, that one user's rating should not have too much impact.
Comment 4 Jan Pirek 2011-05-18 10:13:14 UTC
We use Bayes average for calculating overall average. It corrects plain average depending on number of votes plugin has and what is overall average in ratings and overal number of ratings etc..

http://leedumond.com/blog/the-wisdom-of-crowds-implementing-a-smart-ranking-algorithm/