Closed
Bug 429139
Opened 17 years ago
Closed 17 years ago
Reviews count maintenance script counts developer replies
Categories
(addons.mozilla.org Graveyard :: Maintenance Scripts, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
3.4.1
People
(Reporter: wenzel, Assigned: wenzel)
References
Details
Attachments
(2 files)
|
1.79 KB,
patch
|
morgamic
:
review+
|
Details | Diff | Splinter Review |
|
626 bytes,
patch
|
morgamic
:
review+
|
Details | Diff | Splinter Review |
The maintenance script that counts the reviews for each add-on should not include developer replies (i.e. reviews for which reply_to is not null).
The same goes for calculating the average ratings: Developer replies (not allowed to rate anyway) must not influence an add-ons average rating.
Updated•17 years ago
|
Assignee: nobody → fwenzel
Target Milestone: --- → 3.4.1
| Assignee | ||
Comment 2•17 years ago
|
||
This patch makes sure not to count developer replies and not-yet-moderated reviews. For the ratings, it ignores reviews without ratings and only counts ratings for valid versions.
To test, you may need to manually calculate the correct rating for an add-on (preferably with few ratings ;)) and compare it to the maintenance script output: I did so for https://addons.mozilla.org/en-US/firefox/addon/2942 .
Attachment #316862 -
Flags: review?(morgamic)
Comment 3•17 years ago
|
||
Comment on attachment 316862 [details] [diff] [review]
Maintenance script fix
Works, amazingly... :) Need to ask fligtar if he's ready to update /bin though.
Attachment #316862 -
Flags: review?(morgamic) → review+
| Assignee | ||
Comment 4•17 years ago
|
||
Does that mean I can or cannot commit yet? CCing fligtar for confirmation.
Status: NEW → ASSIGNED
Comment 5•17 years ago
|
||
/bin should be up to date in production, so it's fine.
Comment 7•17 years ago
|
||
Jeremy: "wenzel: stephend|lunch: you can confirm that the script works if oremj runs the "ratings" and "reviews" maintenance tasks once, respectively, on preview." -- would you mind running this?
Comment 8•17 years ago
|
||
(In reply to comment #7)
> Jeremy: "wenzel: stephend|lunch: you can confirm that the script works if oremj
> runs the "ratings" and "reviews" maintenance tasks once, respectively, on
> preview." -- would you mind running this?
>
Done.
Comment 9•17 years ago
|
||
Still not seeing this working on preview: on the main page, "Hyperwords" was featured, and had 36 reviews; its details page says it has 43 :-(
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 10•17 years ago
|
||
I noticed the difference between the counting code on the details page and the one used in the maintenance script is that the latter did not count reviews without rating. However, there's no need to not count them there. The only place where they must not be included is the average rating calculation.
Attachment #318121 -
Flags: review?(morgamic)
Comment 11•17 years ago
|
||
Comment on attachment 318121 [details] [diff] [review]
Count reviews with no rating
Yeah, I'm okay with this as long as there is a message and we're not messing up people's ratings by adding this to AVG(). Looks good.
Attachment #318121 -
Flags: review?(morgamic) → review+
| Assignee | ||
Comment 12•17 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
This still doesn't fix bug 428094, so reopening :-(
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 14•17 years ago
|
||
(In reply to comment #9)
> Still not seeing this working on preview:
This fix isn't going to show up in preview - maintenance scripts are only run in production against the production database.
(In reply to comment #14)
> (In reply to comment #9)
> > Still not seeing this working on preview:
>
> This fix isn't going to show up in preview - maintenance scripts are only run
> in production against the production database.
Comment 7 mislead me, then :-(
Comment 16•17 years ago
|
||
The first patch might show up on preview depending on how the script was run, but the second patch won't.
| Assignee | ||
Comment 17•17 years ago
|
||
stephend said he'll reconfirm once this is in production. That's sad we're giving him such a hard time verifying, but since this is not a critical (read: dangerous) bug, I'm fine with waiting until the push.
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Keywords: push-needed
(In reply to comment #17)
> stephend said he'll reconfirm once this is in production. That's sad we're
> giving him such a hard time verifying, but since this is not a critical (read:
> dangerous) bug, I'm fine with waiting until the push.
Tested on production, and this is fine; I've been clicking around since we deployed earlier tonight.
Verified FIXED (/me crosses fingers)
Status: RESOLVED → VERIFIED
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•