D28179: [contacts] Populate remoteId of newly created contact

Igor Poboiko noreply at phabricator.kde.org
Sat Mar 21 10:20:39 GMT 2020


poboiko created this revision.
poboiko added a reviewer: dvratil.
Herald added a project: KDE PIM.
poboiko requested review of this revision.

REVISION SUMMARY
  If user tries to modify a contact that has just been created, the modify job
  returns 404, the reason being that its remoteId inside Akonadi DB is wrong.
  
  This patch adds an `ItemModifyJob` which ensures the correct `remoteId` in DB.

TEST PLAN
  1. Create contact in KAddressBook
  2. Check Web: contacts is created
  3. Change this contact inside KAB 4.1) (without patch) Contact does not get changed inside Web UI, we get 404 4.2) (with patch) Contact gets changed

REPOSITORY
  R44 KDE PIM Runtime

BRANCH
  fix-contact-create-modify (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D28179

AFFECTED FILES
  resources/google/contacts/contactsresource.cpp

To: poboiko, dvratil
Cc: kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20200321/f1ef75d9/attachment-0001.html>


More information about the kde-pim mailing list