Last modified: 2014-02-25 23:51:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36895, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34895 - article ratings display incorrectly
article ratings display incorrectly
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
ArticleFeedback (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Matthias Mullie
https://en.wikipedia.org/wiki/Anne_Da...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-02 14:15 UTC by Oliver Keyes
Modified: 2014-02-25 23:51 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
screenshot (207.55 KB, image/png)
2012-03-02 14:15 UTC, Oliver Keyes
Details

Description Oliver Keyes 2012-03-02 14:15:25 UTC
Created attachment 10161 [details]
screenshot

There's a string of giberish numbers appearing in place of x.y for the Article Feedback Tool, version 4
Comment 1 Ryan Kaldari 2012-03-21 20:36:33 UTC
Yes, I'm seeing this in lots of articles. It's giving ratings that are in the millions instead of between 1 and 5.
Comment 2 Matthias Mullie 2012-06-11 15:05:36 UTC
I can not reproduce this locally and - at first glance - find no mistakes in code.
However, when visiting http://en.wikipedia.org/wiki/Cancer_pain (the one from the screenshot) - the bug no longer seems to occur. Investigating the ajax-call to get the totals, I only find 1 vote, with all fives.
Based here-on, I'm assuming *someone* stumbled upon corrupted database data and cleared it. Please let me know if you run into another page displaying incorrect totals.
Comment 3 Ryan Kaldari 2012-06-11 16:45:12 UTC
This bug is something of a moving target. Try taking a look at Anne Dallas Dudley on en.wiki.
Comment 4 Ryan Kaldari 2012-07-03 21:16:53 UTC
I also can't reproduce locally, but the code that generated the averages was obnoxious, so I replaced with something sensible it in https://gerrit.wikimedia.org/r/#/c/14148/. Maybe this will fix it.
Comment 5 Ryan Kaldari 2012-10-19 21:02:58 UTC
Doesn't seem to have fixed the problem :(
Comment 6 Ryan Kaldari 2012-10-19 23:22:52 UTC
It looks like the problem is caused by entries in the article_feedback_revisions table where the afr_count is 0 and the afr_total is something like 4294967295. If the afr_count is 0, I imagine the afr_total should also be 0. Indeed, I'm not even sure what the point of these 0 entries are and it looks like most articles don't have them.
Comment 7 Ryan Kaldari 2012-10-20 00:03:41 UTC
Looks like the zero entries are from when someone rates one criteria, but not the others.

According to the database, there are currently 2891 entries in the article_feedback_revisions table with bogus afr_total values. Only about half of them also have afr_count values of 0.
Comment 8 Ryan Kaldari 2012-10-20 00:17:33 UTC
A good start on cleaning the bad data would be running something like:
UPDATE article_feedback_revisions SET afr_total = 0 WHERE afr_count = 0 AND afr_total > 1000000000;

That table is huge though, so we might want to use a maintenance script that first pulls the effected page IDs from a slave DB, and then target those page IDs specifically in the master table.

Like I said though, this would only fix about half of them.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links