Merge lp:~stolowski/unity-scopes-shell/no-unlimited-categories into lp:unity-scopes-shell
Status: | Merged |
---|---|
Approved by: | Marcus Tomlinson |
Approved revision: | 264 |
Merged at revision: | 267 |
Proposed branch: | lp:~stolowski/unity-scopes-shell/no-unlimited-categories |
Merge into: | lp:unity-scopes-shell |
Diff against target: |
39 lines (+22/-0) 1 file modified
src/Unity/categories.cpp (+22/-0) |
To merge this branch: | bzr merge lp:~stolowski/unity-scopes-shell/no-unlimited-categories |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marcus Tomlinson (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+275031@code.launchpad.net |
Commit message
Remove excess empty categories.
Description of the change
Remove excess empty categories.
Automated test for this change is hard to implement because scope harness abstracts away the low-level aspects of the models. I've tested manually (it's in silo 24) - after several refreshes of 'NearBy' scope (which currently produces categories with unique ids on every search) one can see the following debug message in dash log:
Purging unused category: "wn1:declared:
Purging unused category: "yelp1:
Purging unused category: "yelp1_
PASSED: Continuous integration, rev:264 jenkins. qa.ubuntu. com/job/ unity-scopes- shell-ci/ 396/ jenkins. qa.ubuntu. com/job/ unity-scopes- shell-vivid- amd64-ci/ 90 jenkins. qa.ubuntu. com/job/ unity-scopes- shell-vivid- armhf-ci/ 90 jenkins. qa.ubuntu. com/job/ unity-scopes- shell-vivid- armhf-ci/ 90/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity-scopes- shell-vivid- i386-ci/ 90 jenkins. qa.ubuntu. com/job/ unity-scopes- shell-wily- amd64-ci/ 53 jenkins. qa.ubuntu. com/job/ unity-scopes- shell-wily- armhf-ci/ 53 jenkins. qa.ubuntu. com/job/ unity-scopes- shell-wily- armhf-ci/ 53/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity-scopes- shell-wily- i386-ci/ 53
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity- scopes- shell-ci/ 396/rebuild
http://