Merge lp:~nick-dedekind/unity8/lp1520548.volume-resync into lp:unity8

Proposed by Nick Dedekind
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2078
Merged at revision: 2104
Proposed branch: lp:~nick-dedekind/unity8/lp1520548.volume-resync
Merge into: lp:unity8
Diff against target: 33 lines (+13/-1)
1 file modified
qml/Panel/Indicators/MenuItemFactory.qml (+13/-1)
To merge this branch: bzr merge lp:~nick-dedekind/unity8/lp1520548.volume-resync
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+279399@code.launchpad.net

Commit message

Use volume-sync action to resync the volume control.

Description of the change

Use volume-sync action to resync the volume control.

 * Are there any related MPs required for this MP to build/function as expected? Please list.
https://code.launchpad.net/~xavi-garcia-mena/indicator-sound/action-sync-volume/+merge/279097

 * 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
Albert Astals Cid (aacid) wrote :

any prerequisite? You're missing the checklist

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2076
http://jenkins.qa.ubuntu.com/job/unity8-ci/6872/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5565
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/287/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1583
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/286
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1478
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1478
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/285
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/284
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4358
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5579
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5579/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25758
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/104/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/286
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/286/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25757

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6872/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

> any prerequisite? You're missing the checklist

added checklis + prereq

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

The code works, but as discussed with Nick, it would be better if there was a property called "syncAction" that would be either null or "volume-sync" that one could listen to so we would not need to hardcode "indicator.volume" nor "volume-sync".

Nick's talking with the backend guys to see if we can make that happen.

2077. By Nick Dedekind

more general volume sync

2078. By Nick Dedekind

remove unnecessary code

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2078
http://jenkins.qa.ubuntu.com/job/unity8-ci/6905/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5679
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/320/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1616
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/319
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1511
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1511
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/318
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/317
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4413
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5693
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5693/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25903
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/122/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/319
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/319/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/25904

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6905/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
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?
Yes for vivid

 * Did you make sure that the branch does not contain spurious tags?
Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Panel/Indicators/MenuItemFactory.qml'
2--- qml/Panel/Indicators/MenuItemFactory.qml 2015-10-26 09:59:50 +0000
3+++ qml/Panel/Indicators/MenuItemFactory.qml 2015-12-09 17:40:38 +0000
4@@ -125,10 +125,12 @@
5 menuModel.loadExtendedAttributes(menuIndex, {'min-value': 'double',
6 'max-value': 'double',
7 'min-icon': 'icon',
8- 'max-icon': 'icon'});
9+ 'max-icon': 'icon',
10+ 'x-canonical-sync-action': 'string'});
11 }
12
13 ServerPropertySynchroniser {
14+ id: sliderPropertySync
15 objectName: "sync"
16 syncTimeout: Utils.Constants.indicatorValueTimeout
17 bufferedSyncTimeout: true
18@@ -141,6 +143,16 @@
19
20 onSyncTriggered: menuModel.changeState(menuIndex, value)
21 }
22+
23+ UnityMenuAction {
24+ model: menuModel
25+ index: menuIndex
26+ name: getExtendedProperty(extendedData, "xCanonicalSyncAction", "")
27+ onStateChanged: {
28+ sliderPropertySync.reset();
29+ sliderPropertySync.updateUserValue();
30+ }
31+ }
32 }
33 }
34

Subscribers

People subscribed via source and target branches