[Kde-pim] [PATCH] Support for RemoteRevision property

Tobias Koenig tokoe at kde.org
Wed Feb 17 15:06:17 GMT 2010


Hej,

during the implementation of the Open-Xchange and DAV resources
we came across the problem, that each Item and Collection needs
some property where the resource can store additional revision information.

The first idea was to use the remoteId property for this purpose, however
a changing remoteId property will confuse the collectionsync algorithm
and causes unnecessary remove/add actions on modification.

The second idea was to use a custom attribute, however custom attributes
are not delivered as payload for the parameter of ResourceBase::itemRemoved(),
so if your resource needs the revision to delete the item in the backend, you
are lost.

Therefor we came up with the idea of an additional property (named remoteRevision)
that is part of every item/collection related communication with the server, like
'id', 'remoteId' and 'rev' are.

Attached are the two patches for the server and libakonadi that implements handling
of this property. I checked the functionality by adapting the DAV resource to make
use of the new property and let the resource work in a patched environment, worked
without problems so far. Unfortunately I couldn't check whether some tests broke,
because the tests refuse to run here at all (independent of my patch ;)).

Can I commit to trunk?

Ciao,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: akonadi_server_remoterev.patch
Type: text/x-diff
Size: 17424 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100217/b78dae08/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: akonadi_libs_remoterev.patch
Type: text/x-diff
Size: 8446 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100217/b78dae08/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100217/b78dae08/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list