Merge lp:~larryprice/libertine-scope/filter-state into lp:libertine-scope
Proposed by
Larry Price
Status: | Merged |
---|---|
Approved by: | Christopher Townsend |
Approved revision: | 55 |
Merged at revision: | 61 |
Proposed branch: | lp:~larryprice/libertine-scope/filter-state |
Merge into: | lp:libertine-scope |
Diff against target: |
350 lines (+179/-43) 8 files modified
scope/apps/action.cpp (+26/-15) scope/apps/action.h (+21/-15) scope/apps/scope.cpp (+14/-1) scope/apps/scope.h (+1/-0) tests/CMakeLists.txt (+2/-0) tests/mock_hidden_apps.h (+32/-0) tests/test_action.cpp (+82/-0) tests/test_query.cpp (+1/-12) |
To merge this branch: | bzr merge lp:~larryprice/libertine-scope/filter-state |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Christopher Townsend | Approve | ||
Libertine CI Bot | continuous-integration | Approve | |
Review via email: mp+301426@code.launchpad.net |
Commit message
Showing/hiding applications should retain filter state.
Description of the change
Showing/hiding applications should retain filter state.
I added two items to the ctor of Action: filter_state gives the last known state of the scope filters and allows us to set the filters after a show/hide, and open_action is a lambda which tells Action what to do when "open" is called. Since we use url-dispatcher, this was the quickest way I came up with to mock this function call so I could set up some proper unit tests.
To post a comment you must log in.
PASSED: Continuous integration, rev:54 /jenkins. canonical. com/libertine/ job/lp- libertine- scope-ci/ 56/ /jenkins. canonical. com/libertine/ job/build/ 214 /jenkins. canonical. com/libertine/ job/test- 0-autopkgtest/ label=amd64, release= vivid+overlay, testname= default/ 174 /jenkins. canonical. com/libertine/ job/test- 0-autopkgtest/ label=amd64, release= xenial+ overlay, testname= default/ 174 /jenkins. canonical. com/libertine/ job/test- 0-autopkgtest/ label=amd64, release= yakkety, testname= default/ 174 /jenkins. canonical. com/libertine/ job/test- 0-autopkgtest/ label=i386, release= vivid+overlay, testname= default/ 174 /jenkins. canonical. com/libertine/ job/test- 0-autopkgtest/ label=i386, release= xenial+ overlay, testname= default/ 174 /jenkins. canonical. com/libertine/ job/test- 0-autopkgtest/ label=i386, release= yakkety, testname= default/ 174 /jenkins. canonical. com/libertine/ job/lp- generic- update- mp/163/ console /jenkins. canonical. com/libertine/ job/build- 0-fetch/ 217 /jenkins. canonical. com/libertine/ job/build- 1-sourcepkg/ release= vivid+overlay/ 202 /jenkins. canonical. com/libertine/ job/build- 1-sourcepkg/ release= xenial+ overlay/ 202 /jenkins. canonical. com/libertine/ job/build- 1-sourcepkg/ release= yakkety/ 202 /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=amd64, release= vivid+overlay/ 195 /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=amd64, release= vivid+overlay/ 195/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=amd64, release= xenial+ overlay/ 195 /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=amd64, release= xenial+ overlay/ 195/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=amd64, release= yakkety/ 195 /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=amd64, release= yakkety/ 195/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=i386, release= vivid+overlay/ 195 /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=i386, release= vivid+overlay/ 195/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=i386, release= xenial+ overlay/ 195 /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=i386, release= xenial+ overlay/ 195/artifact/ output/ *zip*/output. zip /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=i386, release= yakkety/ 195 /jenkins. canonical. com/libertine/ job/build- 2-binpkg/ arch=i386, release= yakkety/ 195/artifact/ output/ *zip*/output. zip
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild: /jenkins. canonical. com/libertine/ job/lp- libertine- scope-ci/ 56/rebuild
https:/