Merge lp:~renatofilho/address-book-app/fix-1332124 into lp:~phablet-team/address-book-app/staging

Proposed by Renato Araujo Oliveira Filho
Status: Superseded
Proposed branch: lp:~renatofilho/address-book-app/fix-1332124
Merge into: lp:~phablet-team/address-book-app/staging
Diff against target: 114 lines (+21/-11)
4 files modified
debian/control (+2/-0)
src/imports/ContactEdit/ContactDetailAvatarEditor.qml (+8/-4)
src/imports/ContactEdit/ValueSelector.qml (+2/-3)
src/imports/Ubuntu/Contacts/ContactDetailPhoneNumberTypeModel.qml (+9/-4)
To merge this branch: bzr merge lp:~renatofilho/address-book-app/fix-1332124
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Gustavo Pichorim Boiko (community) Approve
Review via email: mp+226024@code.launchpad.net

This proposal has been superseded by a proposal from 2014-07-09.

Commit message

Fixed phone context parser based on Evolution types.

In evolution database these are the correct values:

Mobbile = Context: "home" SubType: "cell"
Work Mobbile = Context: "work" SubType: "cell"
Home = Context: "home" SubType: "voice"
Work = Context: "work" SubType: "voice"
Other = Context: "other" SubType: "voice"

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:213
http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-ci/213/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1719
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1454
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-utopic-amd64-ci/213
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-utopic-armhf-ci/213
        deb: http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-utopic-armhf-ci/213/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-utopic-i386-ci/213
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/1982
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2764
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2764/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/9493
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1212
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1623
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1623/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/phablet-team-address-book-app-staging-ci/213/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

Are there any related MPs required for this MP to build/function as expected? NO

Is your branch in sync with latest trunk? YES

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator? YES

Did you successfully run all tests found in your component's Test Plan on device or emulator? YES

If you changed the UI, was the change specified/approved by design? NO UI CHANGE

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP? NO PACKAGE CHANGE

Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Did you perform an exploratory manual test run of the code change and any related functionality on device or emulator?
Yes

Did CI run pass? If not, please explain why.
No, but not related to the MR.

Have you checked that submitter has accurately filled out the submitter checklist and has taken no shortcut?
Yes

Code looks good and works as expected!

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

FAILED: Autolanding.
More details in the following jenkins job:
http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-autolanding/41/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-utopic-touch/1759
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-utopic/1479
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-utopic-amd64-autolanding/41
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-utopic-armhf-autolanding/41
        deb: http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-utopic-armhf-autolanding/41/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-team-address-book-app-staging-utopic-i386-autolanding/41
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/2019
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2819
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-armhf/2819/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/9549
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-utopic/1235
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1661
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-utopic-amd64/1661/artifact/work/output/*zip*/output.zip

review: Needs Fixing (continuous-integration)
214. By Renato Araujo Oliveira Filho

Merged lp:~renatofilho/address-book-app/new-avatar-empty-icon-on-edit-mode, with fixes for build on jenkins.

Unmerged revisions

211. By Renato Araujo Oliveira Filho

Create Contacts singleton class to export helper functions into QML.
Extend ContactAvatar element to be possible to use in different apps.

210. By Renato Araujo Oliveira Filho

Prevent to have two swiped items.
Removed unused images
Make sure to use theme images when possible
Animate contact delegate opacity when selection a contact.

209. By Renato Araujo Oliveira Filho

Trunk merged.

208. By Omer Akram

make use of memory backend in autopilot testing optional. Fixes: https://bugs.launchpad.net/bugs/1328921.

Approved by PS Jenkins bot, Renato Araujo Oliveira Filho.

207. By Leo Arias

Call get_header from ubuntu-ui-toolkit-autopilot.

Approved by Renato Araujo Oliveira Filho, PS Jenkins bot.

206. By Renato Araujo Oliveira Filho

Trunk merged.

205. By Renato Araujo Oliveira Filho

Trunk merged.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-07-08 17:48:34 +0000
3+++ debian/control 2014-07-09 20:13:38 +0000
4@@ -32,6 +32,7 @@
5 Architecture: amd64 armhf i386
6 Depends: libqt5contacts5,
7 libqt5versit5,
8+ ubuntu-ui-toolkit-theme (>= 0.1.49+14.10.20140707),
9 qmlscene,
10 qtcontact5-galera,
11 qtdeclarative5-qtcontacts-plugin,
12@@ -51,6 +52,7 @@
13 Depends: qtdeclarative5-qtquick2-plugin,
14 qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 0.1.46+14.10.20140527) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles,
15 qtdeclarative5-qtcontacts-plugin,
16+ suru-icon-theme,
17 ${misc:Depends},
18 ${shlibs:Depends},
19 Description: Qt Ubuntu Contacts Components - QML plugin
20
21=== modified file 'src/imports/ContactEdit/ContactDetailAvatarEditor.qml'
22--- src/imports/ContactEdit/ContactDetailAvatarEditor.qml 2014-06-23 18:35:43 +0000
23+++ src/imports/ContactEdit/ContactDetailAvatarEditor.qml 2014-07-09 20:13:38 +0000
24@@ -23,7 +23,7 @@
25 ContactDetailBase {
26 id: root
27
28- readonly property string defaultAvatar: "image://theme/contact"
29+ readonly property string defaultAvatar: "image://theme/add"
30
31 function isEmpty() {
32 return false;
33@@ -68,14 +68,18 @@
34
35 radius: "medium"
36 anchors.fill: parent
37- image: Image {
38+ image: avatarImage.source != defaultAvatar ? avatarImage : null
39+
40+ Image {
41 id: avatarImage
42
43 fillMode: Image.PreserveAspectCrop
44 asynchronous: true
45 source: root.getAvatar(root.detail)
46- height: units.gu(8)
47- width: units.gu(8)
48+ anchors.centerIn: visible ? avatar : undefined
49+ height: units.gu(3)
50+ width: units.gu(3)
51+ visible: source == defaultAvatar
52
53 // When updating the avatar using the content picker the temporary file returned
54 // can contain the same name as the previous one and if the cache is enabled this
55
56=== modified file 'src/imports/ContactEdit/ValueSelector.qml'
57--- src/imports/ContactEdit/ValueSelector.qml 2014-06-18 13:47:42 +0000
58+++ src/imports/ContactEdit/ValueSelector.qml 2014-07-09 20:13:38 +0000
59@@ -93,7 +93,7 @@
60 }
61
62 Icon {
63- name: "chevron"
64+ name: "go-next"
65 color: "black"
66 height: units.gu(1)
67 width: height
68@@ -164,8 +164,7 @@
69 Icon {
70 id: arrow
71
72- name: "chevron"
73- color: "white"
74+ name: "go-next"
75 height: visible ? units.gu(1) : 0
76 width: height
77 visible: index < (listView.count - 1)
78
79=== modified file 'src/imports/Ubuntu/Contacts/ContactDetailPhoneNumberTypeModel.qml'
80--- src/imports/Ubuntu/Contacts/ContactDetailPhoneNumberTypeModel.qml 2014-05-28 19:56:00 +0000
81+++ src/imports/Ubuntu/Contacts/ContactDetailPhoneNumberTypeModel.qml 2014-07-09 20:13:38 +0000
82@@ -41,7 +41,12 @@
83 } else if (contexts.indexOf(QtContacts.ContactDetail.ContextOther) > -1) {
84 return 4
85 } else {
86- return 2 // Default value is "Mobile"
87+ // phone without context is and voice type is other
88+ if (subTypes && subTypes.indexOf(QtContacts.PhoneNumber.Voice) > -1) {
89+ return 4
90+ } else {
91+ return 2 // Default value is "Mobile"
92+ }
93 }
94 }
95
96@@ -92,15 +97,15 @@
97
98 Component.onCompleted: {
99 append({"value": "Home", "label": i18n.dtr("address-book-app", "Home"), "icon": null,
100- "context": QtContacts.ContactDetail.ContextHome, "subType": QtContacts.PhoneNumber.Landline })
101+ "context": QtContacts.ContactDetail.ContextHome, "subType": QtContacts.PhoneNumber.Voice })
102 append({"value": "Work", "label": i18n.dtr("address-book-app", "Work"), "icon": null,
103- "context": QtContacts.ContactDetail.ContextWork, "subType": QtContacts.PhoneNumber.Landline })
104+ "context": QtContacts.ContactDetail.ContextWork, "subType": QtContacts.PhoneNumber.Voice })
105 append({"value": "Mobile", "label": i18n.dtr("address-book-app", "Mobile"), "icon": null,
106 "context": QtContacts.ContactDetail.ContextHome, "subType": QtContacts.PhoneNumber.Mobile })
107 append({"value": "Mobile-Work", "label": i18n.dtr("address-book-app", "Work Mobile"), "icon": null,
108 "context": QtContacts.ContactDetail.ContextWork, "subType": QtContacts.PhoneNumber.Mobile })
109 append({"value": "Other", "label": i18n.dtr("address-book-app", "Other"), "icon": null,
110- "context": QtContacts.ContactDetail.ContextOther, "subType": QtContacts.PhoneNumber.Landline })
111+ "context": QtContacts.ContactDetail.ContextOther, "subType": QtContacts.PhoneNumber.Voice })
112 loaded()
113 }
114 }

Subscribers

People subscribed via source and target branches