Merge lp:~renatofilho/address-book-service/fix-1419854 into lp:address-book-service

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Bill Filler
Approved revision: 151
Merged at revision: 151
Proposed branch: lp:~renatofilho/address-book-service/fix-1419854
Merge into: lp:address-book-service
Diff against target: 24 lines (+12/-1)
1 file modified
contacts/qcontactfetchbyidrequest-data.cpp (+12/-1)
To merge this branch: bzr merge lp:~renatofilho/address-book-service/fix-1419854
Reviewer Review Type Date Requested Status
Bill Filler (community) Needs Fixing
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+249348@code.launchpad.net

Commit message

Update fetch by id with all contacts in the end of the query.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
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 CHANGED

If you changed UI labels, did you update the pot file? NO LABEL CHANGED

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

Revision history for this message
Bill Filler (bfiller) wrote :

It works but there are improvements that should be made to the UI.

1) If I select all from address-book and press the checkmark (in picker mode) or Share in normal selection mode, the screen switches back to main contact view and stays there for a while with no feedback, then the content-hub peer picker shows (or returns to calling app). We should show a spinner or some kind of feedback while the waiting for the export operation to complete and we shouldn't go back to the main contacts view at all. Should go from selection page directly to peer picker or directly back to app that called it.

2) when we enter selection mode on the app, the header should say "Select". Currently it's blank.

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

> It works but there are improvements that should be made to the UI.
>
> 1) If I select all from address-book and press the checkmark (in picker mode)
> or Share in normal selection mode, the screen switches back to main contact
> view and stays there for a while with no feedback, then the content-hub peer
> picker shows (or returns to calling app). We should show a spinner or some
> kind of feedback while the waiting for the export operation to complete and we
> shouldn't go back to the main contacts view at all. Should go from selection
> page directly to peer picker or directly back to app that called it.
Fixed on address-book-app MR: https://code.launchpad.net/~renatofilho/address-book-app/fix-1419854/+merge/249632
>
> 2) when we enter selection mode on the app, the header should say "Select".
> Currently it's blank.

This was a designer decision they asked us to remove the title while in selection mode. This was done some time ago.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'contacts/qcontactfetchbyidrequest-data.cpp'
2--- contacts/qcontactfetchbyidrequest-data.cpp 2014-07-01 14:43:55 +0000
3+++ contacts/qcontactfetchbyidrequest-data.cpp 2015-02-11 15:59:02 +0000
4@@ -44,8 +44,19 @@
5
6 void QContactFetchByIdRequestData::updateRequest(QContactAbstractRequest::State state, QContactManager::Error error, QMap<int, QContactManager::Error> errorMap)
7 {
8+ QList<QtContacts::QContact> result;
9+ // send all results only in the finished state, this will avoid a contact update in every updateContactFetchRequest
10+ switch(state)
11+ {
12+ case QContactAbstractRequest::FinishedState:
13+ result = m_allResults;
14+ break;
15+ default:
16+ result = m_result;
17+ }
18+
19 QContactManagerEngine::updateContactFetchByIdRequest(static_cast<QContactFetchByIdRequest*>(m_request.data()),
20- m_result,
21+ result,
22 error,
23 errorMap,
24 state);

Subscribers

People subscribed via source and target branches