Item appears in wrong second category/subcategory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Ubuntu Software Center 1.1.23, Ubuntu Lucid
Ubuntu Software Center 4.1.21, Ubuntu 11.10 beta 1
0. Select "View" > "All Software", if it is not selected already.
1. Navigate to "Games" > "Card Games", and scroll to "poker".
2. Navigate to "Developer Tools" > "Python", and scroll to "poker".
What happens:
1. "poker2D"
2. "poker2D"
What should happen:
2. "poker2D"
This is indirectly because python-poker2d has "Section: python" when it should not. Regardless, it illustrates a bug in Ubuntu Software Center: unless an item uses X-Ubuntu-
Other symptoms of this bug:
* "Pinta Image Editor" is wrongly displayed in "Developer Tools" > "Mono/CLI", despite having "Categories=
* "Ubuntu One" is wrongly displayed in "Developer Tools" > "Python", despite having "Categories=
* "PyChess" is wrongly displayed in "Developer Tools" > "Python" as well as "Games" > "Board Games".
<https:/
description: | updated |
summary: |
- Item appears in two subsections without using X-Ubuntu-Category- - Secondary + Item appears in wrong second category/subcategory |
description: | updated |
tags: | added: db |
Thanks for your report.
That's a problem with the way the indexes are queried: :Query( (ACcardgame AND <alldocuments>))
When querying cardgames the query is:
Xapian:
We are looking for all records within category 'cardgames'
When querying 'dev tools/python' we are searching records within following the archive sections (in s-c cache and a-x-i index): :Query( ((XSpython OR AEpython OR XSrestricted/python OR AErestricted/python OR XSuniverse/python OR AEuniverse/python OR XSmultiverse/python OR AEmultiverse/ python) AND <alldocuments>))
Xapian:
It appears that poker2D has both:
in s-c cache:
Term List for record #178: 7 AAPoker2D ACcardgame ACgame ACkde AEuniverse/python APpython-poker2d ASuniverse ATapplication XOAlucid XOCuniverse XOLUbuntu XOOUbuntu XOSftp.free.fr ...
in a-x-i db:
Term List for record #12349: 7 XOAlucid XOCuniverse XOLUbuntu XOOUbuntu XOSftp.free.fr XPpython-poker2d XSuniverse/python ...
what we want here is something like 'all records in a given section and not in another category than the current category'.
setting to triage/medium since it doesn't follow the specs but feel free to change importance.