Merge lp:~aacid/unity8/notificationsFullscreenOnIndexChange into lp:unity8

Proposed by Albert Astals Cid
Status: Rejected
Rejected by: Lukáš Tinkl
Proposed branch: lp:~aacid/unity8/notificationsFullscreenOnIndexChange
Merge into: lp:unity8
Diff against target: 22 lines (+5/-6)
1 file modified
qml/Notifications/Notifications.qml (+5/-6)
To merge this branch: bzr merge lp:~aacid/unity8/notificationsFullscreenOnIndexChange
Reviewer Review Type Date Requested Status
Lukáš Tinkl (community) Disapprove
Andrea Cimitan (community) Approve
Unity8 CI Bot continuous-integration Needs Fixing
Review via email: mp+289053@code.launchpad.net

Commit message

Update notificationList.topmostIsFullscreen when the index changes

Since the code is index dependant

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
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?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Andrea Cimitan (cimi) wrote :

possible to test easily?

review: Needs Information
Revision history for this message
Albert Astals Cid (aacid) wrote :

> possible to test easily?

Not really, there's actually no test at all for the pin "notification" and adding one is far from easy given how the code is written.

If you really want i can try to work on it but it will take a while.

Revision history for this message
Andrea Cimitan (cimi) wrote :

> > possible to test easily?
>
> Not really, there's actually no test at all for the pin "notification" and
> adding one is far from easy given how the code is written.
>
> If you really want i can try to work on it but it will take a while.
I don't think this branch is then the correct place to start a testing framework for notifications then, but thanks for looking at it though. We should have a card for notification testing

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> > possible to test easily?
>
> Not really, there's actually no test at all for the pin "notification" and
> adding one is far from easy given how the code is written.
>
> If you really want i can try to work on it but it will take a while.

In light of the upcoming notifications rework I don't think it's worth it.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2279
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/856/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/1100
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1108
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial/1108
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1106
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1106/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial/1106/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1106
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1106/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial/1106/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1106
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1106/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial/1106/console

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/856/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Andrea Cimitan (cimi) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
y
 * Did CI run pass? If not, please explain why.
 * Did you make sure that the branch does not contain spurious tags?
y

review: Approve
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :
review: Disapprove

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Notifications/Notifications.qml'
2--- qml/Notifications/Notifications.qml 2015-10-26 09:59:50 +0000
3+++ qml/Notifications/Notifications.qml 2016-03-15 14:32:13 +0000
4@@ -68,13 +68,12 @@
5 // FIXME: disabled all transitions because of LP: #1354406 workaround
6 //layer.enabled: add.running || remove.running || populate.running
7
8- Component.onCompleted: {
9- if (index == 1) {
10- notificationList.topmostIsFullscreen = fullscreen
11- }
12- }
13+ readonly property int theIndex: index
14+ onTheIndexChanged: updateListTopMostIsFullscreen();
15+ Component.onCompleted: updateListTopMostIsFullscreen();
16+ onFullscreenChanged: updateListTopMostIsFullscreen();
17
18- onFullscreenChanged: {
19+ function updateListTopMostIsFullscreen() {
20 // index 1 because 0 is the PlaceHolder...
21 if (index == 1) {
22 notificationList.topmostIsFullscreen = fullscreen

Subscribers

People subscribed via source and target branches