Merge lp:~lukas-kde/unity8/fixWifiAPIndicatorIcons into lp:unity8

Proposed by Lukáš Tinkl on 2015-12-14
Status: Merged
Approved by: Nick Dedekind on 2015-12-14
Approved revision: 2100
Merged at revision: 2117
Proposed branch: lp:~lukas-kde/unity8/fixWifiAPIndicatorIcons
Merge into: lp:unity8
Diff against target: 22 lines (+11/-1)
1 file modified
qml/Panel/Indicators/MenuItemFactory.qml (+11/-1)
To merge this branch: bzr merge lp:~lukas-kde/unity8/fixWifiAPIndicatorIcons
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing on 2015-12-14
Nick Dedekind (community) 2015-12-14 Approve on 2015-12-14
Review via email: mp+280442@code.launchpad.net

Commit Message

Fix wifi access point indicator items signal strength icon on desktop

Description of the Change

Fix wifi access point indicator items signal strength icon on desktop

When running unity8 in a desktop session, the data coming from the indicator might be of type "uchar" - ASCII code point, instead of a plain string. Take care of converting the value to an integer accordingly.

* 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?

Yes

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

N/A

To post a comment you must log in.
2098. By Lukáš Tinkl on 2015-12-14

merge trunk

2099. By Lukáš Tinkl on 2015-12-14

and now the actual fix :)

PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2098
http://jenkins.qa.ubuntu.com/job/unity8-ci/6936/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5750
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/351/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1647
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/350
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1542
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1542
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/349
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/348
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4461
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5763
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5763/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26021
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/127/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/350
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/350/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26020

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

review: Needs Fixing (continuous-integration)
Nick Dedekind (nick-dedekind) wrote :

Shouldn't really be using different types between nm-applet and indicator-network, but since it's in nm-applet already.
Can you please add a FIXME to get rid of it when we've switched back to indicator-network on desktop please.

review: Approve
2100. By Lukáš Tinkl on 2015-12-14

add a FIXME comment for the future

PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2099
http://jenkins.qa.ubuntu.com/job/unity8-ci/6938/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5754
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/353/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1649
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/352
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1544
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1544
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/351
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/350
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4465
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5767
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5767/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26029
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/128/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/352
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/352/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26030

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

review: Needs Fixing (continuous-integration)

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-14 15:58:37 +0000
4@@ -564,7 +564,17 @@
5 active: serverChecked
6 secure: getExtendedProperty(extendedData, "xCanonicalWifiApIsSecure", false)
7 adHoc: getExtendedProperty(extendedData, "xCanonicalWifiApIsAdhoc", false)
8- signalStrength: strengthAction.valid ? strengthAction.state : 0
9+ signalStrength: {
10+ if (strengthAction.valid) {
11+ var state = strengthAction.state; // handle both int and uchar
12+ // FIXME remove the special casing when we switch to indicator-network completely
13+ if (typeof state == "string") {
14+ return state.charCodeAt();
15+ }
16+ return state;
17+ }
18+ return 0;
19+ }
20 highlightWhenPressed: false
21
22 onMenuModelChanged: {

Subscribers

People subscribed via source and target branches