Merge lp:~ralsina/ubuntu-system-settings/per-package-notifications into lp:ubuntu-system-settings
| Status: | Merged |
|---|---|
| Approved by: | Ken VanDine on 2015-03-31 |
| Approved revision: | 1361 |
| Merged at revision: | 1362 |
| Proposed branch: | lp:~ralsina/ubuntu-system-settings/per-package-notifications |
| Merge into: | lp:ubuntu-system-settings |
| Diff against target: |
248 lines (+146/-37) 3 files modified
plugins/notifications/notification_manager.cpp (+88/-37) plugins/notifications/notification_manager.h (+1/-0) tests/autopilot/ubuntu_system_settings/tests/test_notifications.py (+57/-0) |
| To merge this branch: | bzr merge lp:~ralsina/ubuntu-system-settings/per-package-notifications |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ken VanDine | 2015-03-30 | Approve on 2015-03-31 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-03-30 | |
|
Review via email:
|
|||
Commit Message
Use per-package notification settings instead of per-app and per-scope.
Description of the Change
Use per-package notification settings instead of per-app and per-scope.
It's compatible with previous version, and now has the following semantics:
* Uncheck a package: all apps/scopes in that package are now blacklisted
* Check a package: all apps/scopes in that package are whitelisted
* If it reads a config from an older version and ONE of the apps/scopes in a package is blacklisted, the whole package and all its apps/scopes will now be blacklisted.
For legacy apps/helpers, like system settings there is no change.
------------
To test:
* Using the current ubuntu-
* Using this version you should have one.
* If you untick the telegram item, and run this command, you should see something like this:
$ gsettings get com.ubuntu.
[('com.
* Ticking the telegram item should make those two items disappear
-------------
Additionally, if either one of the telegram items were NOT ticked, then the single telegram item in the new version should be NOT ticked.
If any other app was ticked/not ticked with the current version, it should stay the same in the new version.
- 1362. By Roberto Alsina on 2015-03-31
-
merged trunk
- 1363. By Roberto Alsina on 2015-03-31
-
added autopilot test to check the right number of items is shown
- 1364. By Roberto Alsina on 2015-03-31
-
style fixes


PASSED: Continuous integration, rev:1361 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- ci/2039/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 2037 jenkins. qa.ubuntu. com/job/ ubuntu- system- settings- vivid-i386- ci/309 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-mako/ 1793 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2035 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 2035/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 19281
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- system- settings- ci/2039/ rebuild
http://