Closed Bug 436810 Opened 16 years ago Closed 16 years ago

Search-results page only shows 1 of 2 reviews

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
4.x (triaged)

People

(Reporter: stephend, Assigned: wenzel)

References

()

Details

Attachments

(1 file)

Still not showing up, so not a cache bug like I thought -- must've been thinking of something else.  This was as a result of a moderated review, I think.
Target Milestone: 3.4.3 → 3.4.4
Target Milestone: 3.4.4 → 3.4.5
Assignee: nobody → clouserw
It seems to me like our reviews and ratings maintenance tasks are not being run on a regular basis anymore?

Either way, I am removing the "has valid files" requirement from the review counts as that will certainly bias the results (hm, I think this is bug 435123 rather than this one here, but it's part of what's needed here too so yeah).
Assignee: clouserw → fwenzel
Status: NEW → ASSIGNED
Attachment #324562 - Flags: review?(morgamic)
Blocks: 435123
CCing oremj: Jeremy, sorry we are probably bothering you with this for about the 25th time but: The regular maintenance tasks ("php maintenance.php reviews" and "... ratings") are only run in production, not on preview, is that correct? This may well cause the discrepancy we are seeing here.
That is correct.
Depends on: 438832
In spite of the maintenance tasks apparently being run now on preview (bug 438832), this is still showing up on preview. However, this works correctly on my dev copy, as well as in production (see the urls in comment 0, without "preview").

I suggest the following (to be done post-AMO-3.4.5): We should add code to incrementally update the review counts as they get written or deleted (we could use this count everywhere then, saving us a bunch of counting queries). Then we should have the maintenance tasks run once on preview to get the counts up to date.

Along with the incremental update, we should fix (and recalculate incrementally) the ratings, in bug 291413.

Not sure if that should be a spinoff bug of this?
Depends on: 443026
Target Milestone: 3.4.5 → 3.x (triaged)
Attachment #324562 - Flags: review?(morgamic) → review+
(In reply to comment #2)
> Created an attachment (id=324562) [details]
> removing "has files" requirement for reviews/ratings count in maintenance
> script

Thanks for the review, r16792.
Keywords: push-needed
Keywords: push-needed
This is fixed.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Verified FIXED
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: