Review Request 108820: Remove account and its contacts from Nepomuk when the account is removed from Tp
Vishesh Handa
me at vhanda.in
Thu Feb 7 11:48:41 UTC 2013
> On Feb. 7, 2013, 10:54 a.m., Vishesh Handa wrote:
> > nepomuk-storage.cpp, line 547
> > <http://git.reviewboard.kde.org/r/108820/diff/1/?file=112807#file112807line547>
> >
> > Could you simplify the code over here a little. It's hard to understand -
> >
> > QList<ContactIdentifier> keys = m_contacts.keys(); // Splitting it so that the keys do not need to be reconstructed each time
> >
> > for( .. ) {
> > ContactIdentifier ci = keys.at(i);
> > if( ci.accountId() == path ) {
> > ContactResources cr = m_contacts.value(ci);
> > urisToDelete << cr.personContact();
> > }
> > }
> > Also, should you also delete the imAccount of each of these person contacts?
> >
> > urisToDelete << cr.imAccount(); ?
>
> Martin Klapetek wrote:
> > Also, should you also delete the imAccount of each of these person contacts?
>
> I thought so, but isn't that a subresource of personContact? Or what is actually a subresource? :)
Technically it is. But it's faster for you to tell it everything to delete, without making it query for subresources. Also sub-resource handling is messy.
- Vishesh
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/108820/#review26837
-----------------------------------------------------------
On Feb. 6, 2013, 9:22 p.m., Martin Klapetek wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/108820/
> -----------------------------------------------------------
>
> (Updated Feb. 6, 2013, 9:22 p.m.)
>
>
> Review request for Telepathy.
>
>
> Description
> -------
>
> = summary.
>
>
> This addresses bug 246219.
> http://bugs.kde.org/show_bug.cgi?id=246219
>
>
> Diffs
> -----
>
> abstract-storage.h 9218554
> account.h e7eb2ee
> account.cpp f58a55b
> controller.cpp 449a1c4
> nepomuk-storage.h 2aab888
> nepomuk-storage.cpp 07d3003
>
> Diff: http://git.reviewboard.kde.org/r/108820/diff/
>
>
> Testing
> -------
>
> None. Half of my KTp is now on model_refactor_3 and my kpeople branches don't compile, I'm waiting for d_ed (nag) to merge it later tonight (nag nag).
>
>
> Thanks,
>
> Martin Klapetek
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-telepathy/attachments/20130207/f8753fae/attachment.html>
More information about the KDE-Telepathy
mailing list