Merge lp:~gary-lasker/software-center/sorting-fix-lp969215 into lp:software-center
Proposed by
Gary Lasker
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 2964 | ||||
Proposed branch: | lp:~gary-lasker/software-center/sorting-fix-lp969215 | ||||
Merge into: | lp:software-center | ||||
Diff against target: |
117 lines (+32/-11) 4 files modified
softwarecenter/ui/gtk3/panes/availablepane.py (+4/-0) softwarecenter/ui/gtk3/panes/softwarepane.py (+3/-0) softwarecenter/ui/gtk3/views/appview.py (+20/-11) test/gtk3/test_app_view.py (+5/-0) |
||||
To merge this branch: | bzr merge lp:~gary-lasker/software-center/sorting-fix-lp969215 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt | Approve | ||
Review via email: mp+101633@code.launchpad.net |
Description of the change
This fixes bug 969215 and to the best of my testing I get what I expect with sorting options in all cases (searching, not searching, navigating around, etc.). Note in the bug description that I've added a second test case that comes from a comment in a separate merge proposal review by mvo (https:/
To post a comment you must log in.
Thanks for your work on this branch! It works fine and fixes the bug nicely.
Looking at the code (and as I understand it, I may be wrong of course) I would view.user_ defined_ search_ sort_method" .
like to suggest a tweak to the variable name "self.app_
- its actually not set when the sort method is changed, but unconditionally once the first defined_ sort_method" that is set when the sort-method changes
set of results was displayed. Maybe something like:
- it very similar to "self.user_
# when a search changes, this is reset and forces the first
self.force_ default_ search_ sort_method = True
# result set to be always sorted by relevance
(of course the logic needs to be inverted with that name change)?
But a more creative ideas for a good name is very welcome of course :) I will approve it now, but
I would like to hear your opinion about the variable.