Recommendations on their own screen are differently ordered from the home screen

Bug #955402 reported by Matthew Paul Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Ubuntu Software Center 5.1.12, Ubuntu 12.04 beta 1

1. On the home screen, scroll down to "Recommended For You".
2. Opt in to recommendations, if you haven't already.
3. Note the recommendations and the order in which they appear.
4. Click "More".
5. Note the first recommendations and the order in which they appear.

What you see: On the standalone "Recommended For You" screen, the first recommendations are different and in a different order.

What you should see: Both on the home screen and the standalone screen, the first 12 recommendations are the same and in the same order.

This seems to be because on the standalone screen, the recommendations are sorted "By Top Rated" like a category or subcategory would be, with options to sort "By Name" and "By Newest First". But it isn't useful to sort recommendations by anything other than the strength of the recommendation, for exactly the same reason that it isn't useful to sort the "Top Rated" screen by anything other than rating: any other ordering would be dependent on how many applications were shown, which is an arbitrary number.

So the "Recommended For You" screen should not have a sort menu, like "Top Rated" does not, and recommendations should be sorted by strength.

Tags: patch
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I had omitted this from the specification. Updated: <https://wiki.ubuntu.com/SoftwareCenter/Recommendations?action=diff&rev2=10&rev1=9>

Changed in software-center (Ubuntu):
status: New → Triaged
importance: Undecided → Low
assignee: nobody → Gary Lasker (gary-lasker)
Revision history for this message
Michael Vogt (mvo) wrote :

This is a bit tricky as we are currently using get_query_for_pkgnames() to get the recommended items. This does
not preserve the order. We would have to use a different approach like:
def get_ordered_query_list_for_pkgnames(pkgnames):
    query_list = []
    for pkgname in pkgnames:
        query = xapian.Query("XP" + pkgname)
        query = xapian.Query(xapian.Query.OP_OR,
                             query,
                             xapian.Query("AP" + pkgname))
        query_list.append(query)
    return query_list

instead to preserve the order.

Revision history for this message
Michael Vogt (mvo) wrote :
tags: added: patch
Changed in software-center (Ubuntu):
assignee: Gary Lasker (gary-lasker) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.