Closed
Bug 476660
Opened 16 years ago
Closed 16 years ago
Create new script to update stats totals
Categories
(addons.mozilla.org Graveyard :: Statistics, defect)
addons.mozilla.org Graveyard
Statistics
Tracking
(Not tracked)
RESOLVED
FIXED
5.0.3
People
(Reporter: clouserw, Assigned: jbalogh)
Details
Attachments
(1 file)
2.69 KB,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
Once bug 475919 is fixed we'll be getting our stats directly from metrics.mozilla.com. They will be filling in the following tables:
`update_counts`
`download_counts`
`addons_collections`
We need a script that takes the data loaded into those tables and fills in:
`addons`.`weeklydownloads`
`addons`.`totaldownloads`
`collections`.`downloads` (this is a running total)
If the script doesn't total all the numbers every time it will need to accept a flag that tells it to (we'll be running back logs and will be replacing already counted numbers).
Reporter | ||
Updated•16 years ago
|
Assignee: nobody → jbalogh
Comment 1•16 years ago
|
||
Our maintenance script (http://svn.mozilla.org/addons/trunk/bin/maintenance.php) already updates weeklydownloads and totaldownloads from the data in download_counts.
Can probably just add something for collections.
Also, I've been wanting to have an addons.latestupdatepings field for a while, might be a good time to add that in. Will improve performance in a number of places where we have to figure out the latest date's update ping count, and also if we decide to sort popular add-ons based on update pings at some point.
Reporter | ||
Comment 2•16 years ago
|
||
maintenance.php is a good idea. We need to add the following:
1) Code to update `addons_collections`.`downloads` by totaling the data in stats_addons_collections_counts (similar to how the add-on download totals are currently calculated). Call this section "addons_collections_total"
2) Code to update `collections`.`downloads` by totaling the data in stats_collections_counts. Call this section "collections_total"
Reporter | ||
Updated•16 years ago
|
Severity: blocker → normal
Target Milestone: --- → 5.0.3
Assignee | ||
Comment 3•16 years ago
|
||
The existing download stats will be lost the first time this runs, but clouserw says we're ok with that.
The deleted comment is a copy/paste error.
Attachment #364586 -
Flags: review?(clouserw)
Reporter | ||
Updated•16 years ago
|
Attachment #364586 -
Flags: review?(clouserw) → review+
Assignee | ||
Comment 4•16 years ago
|
||
Reporter | ||
Updated•16 years ago
|
Keywords: push-needed
Updated•9 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
•