Closed
Bug 509078
Opened 17 years ago
Closed 16 years ago
[W-2.4.3] Similar Collections
Categories
(addons.mozilla.org Graveyard :: Collections, defect, P3)
addons.mozilla.org Graveyard
Collections
Tracking
(Not tracked)
VERIFIED
FIXED
5.4
People
(Reporter: fligtar, Assigned: jbalogh)
References
()
Details
Attachments
(2 files, 1 obsolete file)
|
13.75 KB,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
|
3.38 KB,
patch
|
wenzel
:
review+
|
Details | Diff | Splinter Review |
As mentioned in bug 506800, Jeff wants to add Similar Collections as well.
Each collection display page should have a box labeled "Similar Collections" in the sidebar. It should list up to 5 *public* similar collections that are not auto-publishers.
Updated•17 years ago
|
Target Milestone: 5.0.9 → 5.1
Updated•17 years ago
|
Target Milestone: 5.1 → 5.2
Updated•17 years ago
|
Target Milestone: 5.2 → 5.3
| Reporter | ||
Updated•17 years ago
|
Target Milestone: 5.3 → 5.4
| Assignee | ||
Comment 1•16 years ago
|
||
An update: figuring out the correlations takes 88 minutes (since there's lot of collections). Looking at similar collections is not very useful since you have to figure out which one or two add-ons are not in both collections.
But computers are great at doing mundane stuff like that, so I'm going to use the correlation scores to find similar add-ons that aren't in this collection. This is good since we want people to discover add-ons, not collections, and we'll be able to use the same methods for doing personalized recommendations in the future.
We'll have to filter out "popular add-ons" or Adblock and Firebug and the Collector extension will be recommended everywhere.
I might look into doing the comparison loop in C for speed.
| Assignee | ||
Comment 2•16 years ago
|
||
Attachment #414527 -
Flags: review?(clouserw)
| Assignee | ||
Comment 3•16 years ago
|
||
This is really slow right now (> 45 minutes), but I'm looking at ways to speed it up today, first with a smarter algo and then C. The comparisons could be parallelized, but IT is scared of me swamping their box right now. Run it with 'python build-recommendations collections'.
Comment 4•16 years ago
|
||
Comment on attachment 414527 [details] [diff] [review]
add-on recommendations from collections
The migration is broken (looks like you copied/pasted incomplete lines) and the script dies when, I think, there are no existing records:
Traceback (most recent call last):
File "build-recommendations.py", line 189, in <module>
main()
File "build-recommendations.py", line 185, in main
return cmd()
File "build-recommendations.py", line 143, in __call__
self.recommend()
File "build-recommendations.py", line 174, in recommend
'VALUES ' + records)
File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 173, in execute
File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 36, in defaulterrorhandler
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1")
Attachment #414527 -
Flags: review?(clouserw) → review-
| Assignee | ||
Comment 5•16 years ago
|
||
Attachment #414584 -
Flags: review?(clouserw)
| Assignee | ||
Updated•16 years ago
|
Attachment #414527 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•16 years ago
|
||
(In reply to comment #4)
> (From update of attachment 414527 [details] [diff] [review])
> The migration is broken (looks like you copied/pasted incomplete lines)
That's what happens when lines are too big for my screen!
Comment 7•16 years ago
|
||
Comment on attachment 414584 [details] [diff] [review]
add-on recommendations from collections
This works, but we're going to have to nice it way down. Long running 100% cpu scripts make me sad. Maybe this can be our first hudson job, though.
>+ cursor.execute('INSERT INTO collection_addon_recommendations '
>+ 'VALUES ' + records)
Stuff like this can break mysql when the query gets too large. You're dropping over 100000 rows in and it doesn't seem to mind, but I don't know how close to the limit that is and we've hit it before. I think you should break it up into chunks.
Attachment #414584 -
Flags: review?(clouserw) → review+
| Assignee | ||
Comment 8•16 years ago
|
||
| Assignee | ||
Comment 9•16 years ago
|
||
krupa: there was an unknown issue with the script today; I'll be debugging with fox2mike tomorrow morning.
Comment 10•16 years ago
|
||
This apparently introduced foreign keys that are not resolved on collection deletion (bug 510173 regressed). Please add that.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 11•16 years ago
|
||
Attachment #415662 -
Flags: review?(fwenzel)
Comment 12•16 years ago
|
||
Comment on attachment 415662 [details] [diff] [review]
cascade collection or addon deletions
Yup, that looks good. Prolly need to have that applied to preview so stephend can verify?
Attachment #415662 -
Flags: review?(fwenzel) → review+
| Assignee | ||
Comment 13•16 years ago
|
||
r57155. I applied the migration on preview, maybe it will make stephend happy.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
https://preview.addons.mozilla.org/en-US/firefox/collection/sport doesn't have any "Related Collections" or "From Similar Collections" included -- should it?
Verified FIXED on:
https://preview.addons.mozilla.org/en-US/firefox/collection/webdeveloper: "Similar Collections"
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Keywords: push-needed
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
•