[Nepomuk] Review Request: Sub-resource handling in DMS removeProperty
Sebastian Trueg
sebastian at trueg.de
Mon Jul 18 17:04:42 CEST 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101994/
-----------------------------------------------------------
Review request for Nepomuk.
Summary
-------
So far we have sub-resource handling in removeResources and removeDataByApplication. It means that sub-resources are removed if their super-resources are removed, too and no other resource references them. However, this is not done in removeProperty and removeProperties. IMHO it should be done, too. As soon as the nao:hasSubResource relation is removed there is no relation between super- and sub-resource anymore rendering the sub-resource pointless.
The attached patch simply adds two unit tests. It does not include the actual code which implements the sub-resource handling in removeProperty and removeProperties. The point of this review request is to determine if the behavior explained above is what we want or not.
Diffs
-----
nepomuk/services/storage/test/datamanagementmodeltest.h a46e525
nepomuk/services/storage/test/datamanagementmodeltest.cpp f2ca76e
Diff: http://git.reviewboard.kde.org/r/101994/diff
Testing
-------
Thanks,
Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20110718/e9391f65/attachment.htm
More information about the Nepomuk
mailing list