Merge lp:~macslow/unity8/swipe-dismiss-snap-decisions into lp:unity8
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Michał Sawicz on 2015-02-09 | ||||||||
| Approved revision: | 1285 | ||||||||
| Merged at revision: | 1599 | ||||||||
| Proposed branch: | lp:~macslow/unity8/swipe-dismiss-snap-decisions | ||||||||
| Merge into: | lp:unity8 | ||||||||
| Diff against target: |
1554 lines (+836/-252) 15 files modified
qml/Notifications/Notification.qml (+36/-6) qml/Notifications/Notifications.qml (+2/-6) tests/mocks/Unity/Notifications/CMakeLists.txt (+2/-1) tests/mocks/Unity/Notifications/MockActionModel.cpp (+6/-4) tests/mocks/Unity/Notifications/MockActionModel.h (+4/-2) tests/mocks/Unity/Notifications/MockNotification.cpp (+156/-4) tests/mocks/Unity/Notifications/MockNotification.h (+63/-5) tests/mocks/Unity/Notifications/MockNotificationModel.cpp (+172/-0) tests/mocks/Unity/Notifications/MockNotificationModel.h (+72/-0) tests/mocks/Unity/Notifications/plugin.cpp (+5/-3) tests/mocks/Unity/Notifications/plugin.h (+1/-2) tests/qmltests/Notifications/Notification.qml (+31/-0) tests/qmltests/Notifications/tst_Notifications.qml (+271/-213) tests/qmltests/Notifications/tst_OptionToggle.qml (+11/-6) tests/qmltests/Notifications/tst_SwipeToAct.qml (+4/-0) |
||||||||
| To merge this branch: | bzr merge lp:~macslow/unity8/swipe-dismiss-snap-decisions | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michał Sawicz | tests | Approve on 2015-02-09 | |
| PS Jenkins bot | continuous-integration | 2014-09-04 | Approve on 2015-02-09 |
| Albert Astals Cid (community) | Approve on 2015-01-27 | ||
| Michael Zanetti (community) | Abstain on 2014-11-24 | ||
| Antti Kaijanmäki (community) | Needs Information on 2014-11-08 | ||
|
Review via email:
|
|||
Commit Message
Allow swipe-to-dismiss for contracted snap-decision notifications, interactive notifications and ephemeral notifications.
Description of the Change
Allow swipe-to-dismiss for contracted snap-decision notifications, interactive notifications and ephemeral notifications.
For the reviewers convenience, here's a video of the branch in action: https:/
* Are there any related MPs required for this MP to build/function as expected? Please list.
No.
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes.
* Did you make sure that your branch does not contain spurious tags?
Yes.
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Not applicable.
* If you changed the UI, has there been a design review?
Yes.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1230
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1233
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1234
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1235
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1331
http://
Executed test runs:
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in qml/Notificatio
1 conflicts encountered.
| Albert Astals Cid (aacid) wrote : | # |
Text conflict in qml/Notificatio
Text conflict in tests/qmltests/
2 conflicts encountered.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1236
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1236
http://
Executed test runs:
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Antti Kaijanmäki (kaijanmaki) wrote : | # |
+ readonly property bool draggable: state == "contracted" || notification.type !== Notification.
Does this cover pin-unlock dialog as well? I don't have the code at hand right now to check if it's type is set to Notification.
| Mirco Müller (macslow) wrote : | # |
> + readonly property bool draggable: state == "contracted" ||
> notification.type !== Notification.
>
>
> Does this cover pin-unlock dialog as well? I don't have the code at hand right
> now to check if it's type is set to Notification.
> becomes draggable.
No, that won't happen. A SIM-unlock "dialog" is an expanded (or non-contractable) snap-decision, thus it cannot be dragged.
| Albert Astals Cid (aacid) wrote : | # |
file://
if (data.type !== Notification.
^
file://
if (data.type !== Notification.
| Mirco Müller (macslow) wrote : | # |
> make testNotifications fails here
Like discussed on IRC, I can't reproduce your reported failures. Everything works and passes as expected.
| Albert Astals Cid (aacid) wrote : | # |
> > make testNotifications fails here
>
> Like discussed on IRC, I can't reproduce your reported failures. Everything
> works and passes as expected.
Barring that for some reasons test don't pass for me the rest looks good, if everyone else wants to take over these two days i'm out, feel free :)
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1241
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Michael Zanetti (mzanetti) wrote : | # |
I can reproduce the test failures Albert reported. Sometimes it seems that a swipe to remove removes 2 notifications instead of just one. I can also reproduce that manually with tryNotifications.
| Michael Zanetti (mzanetti) wrote : | # |
Seems fixing the FIXME in Notifications.
| Michael Zanetti (mzanetti) wrote : | # |
hmm.. sorry, after reverting the debug prints in the test it fails again here...
| Albert Astals Cid (aacid) wrote : | # |
I think relying on the JS->C++ binding ignoring the extra parameter to call an invokable function with less parameters is a bit too much
| Albert Astals Cid (aacid) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes
* Did CI run pass?
Waiting for it to finish
* Did you make sure that the branch does not contain spurious tags?
Yes
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1282
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1282
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Albert Astals Cid (aacid) wrote : | # |
qmluitests failed on CI for some reason byt they all passed fine so i'm going to top approve anyway
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1282
http://
Executed test runs:
FAILURE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Michał Sawicz (saviq) wrote : | # |
There's a failing test I'm afraid:
FAIL! : qmltestrunner:
Actual (): 3
Expected (): 2
Loc: [/home/
| Mirco Müller (macslow) wrote : | # |
Looking into it.
- 1284. By Mirco Müller on 2015-02-05
-
Merge with trunk.
| Mirco Müller (macslow) wrote : | # |
I've updated my system, re-merged this branch with lp:unity8 trunk and recompiled everything, but still can't reproduce this failure. All notification-
- 1285. By Mirco Müller on 2015-02-06
-
Make sure all rendering operations are completed before doing the swipe-dismiss-
checks, thus the tests also pass on very slow (jenkins) systems.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1285
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
FAILURE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1285
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:1089 /code.launchpad .net/~macslow/ unity8/ swipe-dismiss- snap-decisions/ +merge/ 233347/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// jenkins. qa.ubuntu. com/job/ unity8- ci/4230/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- utopic- touch/4444 jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- utopic/ 1231 jenkins. qa.ubuntu. com/job/ unity8- utopic- amd64-ci/ 1324 jenkins. qa.ubuntu. com/job/ unity8- utopic- i386-ci/ 1324 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- mako/4219 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- armhf/5696 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- utopic- armhf/5696/ artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 12647
Executed test runs:
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/4230/ rebuild
http://