Closed Bug 370494 Opened 19 years ago Closed 19 years ago

Allow viewing addons ordered by their rating, popularity etc.

Categories

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

x86
Windows XP
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: alex, Unassigned)

References

Details

Attachments

(3 files)

Currently, remora shows add-ons sorted by name, and there isn't an options for users to view add-ons by most-popular, top rated, newest and so on. There is a huge number of addons overall and in each category, so viewing them ordered alphabetically isn't very useful. Think of YouTube or Flickr with videos/photos ordered alphabetically. Proposal: 1. Change default sorting to 'most popular' 2. Allow users to change the sorting to 'top rated', 'most recent', 'by name' 3. Allow users to see clearly what the current sorting is
Severity: normal → enhancement
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Status: ASSIGNED → NEW
Comment on attachment 255209 [details] [diff] [review] Sort implementation in Addons controller Please add tests for this before requesting review of the patch.
Attachment #255209 - Flags: first-review?(fwenzel)
(In reply to comment #3) > Please add tests for this before requesting review of the patch. Will do, wasn't sure what the procedure was...
Attaching a unit-test for the new sorting code. Currently, the test uses the 3 addons in the sample DB. We can add more sample addons (about 20?) and update the $all_expected_results array in the test accordingly.
Blocks: 362526
Alright, I added the addon sort order and RSS feeds in SVN r2451. It'll be on stage shortly, and on preview when it is published the next time. Alex, thanks for your help. While I did not just apply your patches (we are not juggling with as many big arrays anymore, instead we have SQL do the work as it is supposed to be ;)), I for example almost literally used your unit test. Well done.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Blocks: 372841
Component: Add-ons → Administration
QA Contact: add-ons → administration
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: