Merge lp:~renatofilho/address-book-app/no-sync-dep into lp:address-book-app

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Arthur Mello
Approved revision: 632
Merged at revision: 632
Proposed branch: lp:~renatofilho/address-book-app/no-sync-dep
Merge into: lp:address-book-app
Diff against target: 72 lines (+18/-1)
3 files modified
src/imports/Settings/SettingsPage.qml (+7/-0)
src/imports/Ubuntu/Contacts/ContactListView.qml (+9/-1)
tests/qml/tst_ContactListView.qml (+2/-0)
To merge this branch: bzr merge lp:~renatofilho/address-book-app/no-sync-dep
Reviewer Review Type Date Requested Status
Arthur Mello (community) Approve
system-apps-ci-bot continuous-integration Needs Fixing
Review via email: mp+306136@code.launchpad.net

Commit message

Does not show import contacts from account if sync service is not available.

To post a comment you must log in.
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:631
https://jenkins.canonical.com/system-apps/job/lp-address-book-app-ci/26/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/1557/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/1557
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1405/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1405/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/1405/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1405/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1405/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/1405/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1405/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1405/console
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/1405/console

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-address-book-app-ci/26/rebuild

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

Create a option to force "import from account" button be visible without the sync service.

This option is used by unit test.

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Continuous integration, rev:632
https://jenkins.canonical.com/system-apps/job/lp-address-book-app-ci/27/
Executed test runs:
    FAILURE: https://jenkins.canonical.com/system-apps/job/build/1559/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-0-fetch/1559
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1407
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1407/artifact/output/*zip*/output.zip
    FAILURE: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1407/console
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/1407
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=amd64,release=yakkety/1407/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1407
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1407/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1407
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1407/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/1407
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=armhf,release=yakkety/1407/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1407
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=vivid+overlay/1407/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1407
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=xenial+overlay/1407/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/1407
        deb: https://jenkins.canonical.com/system-apps/job/build-2-binpkg/arch=i386,release=yakkety/1407/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/system-apps/job/lp-address-book-app-ci/27/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Arthur Mello (artmello) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/imports/Settings/SettingsPage.qml'
2--- src/imports/Settings/SettingsPage.qml 2016-04-26 00:48:34 +0000
3+++ src/imports/Settings/SettingsPage.qml 2016-09-19 20:49:23 +0000
4@@ -21,6 +21,8 @@
5 import Ubuntu.Components.ListItems 1.3 as ListItem
6 import Ubuntu.Contacts 0.1 as ContactsUI
7
8+import Buteo 0.1
9+
10 Page {
11 id: root
12 objectName: "settingsPage"
13@@ -84,6 +86,7 @@
14
15 text: i18n.tr("Add Google account")
16 progression: true
17+ enabled: buteoSync.serviceAvailable
18
19 onClicked: addGoogleAccountItem.activate()
20 Keys.onRightPressed: addGoogleAccountItem.activate()
21@@ -175,6 +178,10 @@
22 }
23 }
24
25+ ButeoSync {
26+ id: buteoSync
27+ }
28+
29 Keys.onDownPressed: addGoogleAccountItem.forceActiveFocus()
30 Keys.onRightPressed: addGoogleAccountItem.forceActiveFocus()
31 Keys.onLeftPressed: pageStack.removePages(root)
32
33=== modified file 'src/imports/Ubuntu/Contacts/ContactListView.qml'
34--- src/imports/Ubuntu/Contacts/ContactListView.qml 2016-08-18 00:18:10 +0000
35+++ src/imports/Ubuntu/Contacts/ContactListView.qml 2016-09-19 20:49:23 +0000
36@@ -194,7 +194,14 @@
37
38 This property holds if the import options should be visible on the list
39 */
40- property bool showImportOptions: false
41+ property bool showImportOptions: false
42+ /*!
43+ \qmlproperty bool showImportFromAccountOption
44+
45+ This property holds if the import from account option should be visible on the list
46+ */
47+ property bool showImportFromAccountOption: buteoSync.serviceAvailable
48+
49 /*!
50 \qmlproperty bool showAddNewButton
51
52@@ -674,6 +681,7 @@
53 anchors.fill: parent
54 asynchronous: true
55 source: root.showImportOptions &&
56+ root.showImportFromAccountOption &&
57 (root.count === 0) &&
58 !view.favouritesIsSelected &&
59 !isSearching ? sourceFile : ""
60
61=== modified file 'tests/qml/tst_ContactListView.qml'
62--- tests/qml/tst_ContactListView.qml 2016-06-20 17:38:35 +0000
63+++ tests/qml/tst_ContactListView.qml 2016-09-19 20:49:23 +0000
64@@ -44,6 +44,8 @@
65 id: contactListPage
66 objectName: "contactListViewTest"
67 anchors.fill: parent
68+ //force import from account option be visible without the service running
69+ showImportFromAccountOption: true
70 }
71
72 }

Subscribers

People subscribed via source and target branches