Closed Bug 408680 Opened 17 years ago Closed 16 years ago

Add support for reviews column in addons table

Categories

(addons.mozilla.org Graveyard :: Administration, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: morgamic, Assigned: morgamic)

References

Details

Attachments

(2 files)

Review counts are needed in 3.2's redesign, and I don't want to have to do an extra query on the reviews table to get this info.

For the same reason we have flattened out average rating, weekly and total downloads, etc.

So I'd like an additional field added to addons named 'reviews' that's an unsigned int(11) and also we will need another action in maintenance.php to update these counts (read from slave, update master).
Assignee: nobody → morgamic
This depends on fligtar's patch for maintenance.php.

Need to add reviews to addon model... will reupload after meeting.
Attachment #297373 - Attachment is patch: true
Attachment #297373 - Attachment mime type: application/octet-stream → text/plain
When we push this, we will need to have this run on prod:

alter table addons add column `totalreviews` int(11) unsigned NOT NULL default '0'
Attachment #299951 - Flags: review?(fwenzel)
Keywords: push-needed
Comment on attachment 299951 [details] [diff] [review]
v1.5, fixes maint script col name and adds column to addon model

Yes, this looks good.

You want to use it in the stars element too, I assume.
Attachment #299951 - Flags: review?(fwenzel) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
This is live.
Keywords: push-needed
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: