From kde-telepathy Fri Jan 25 17:21:41 2013 From: Vishesh Handa Date: Fri, 25 Jan 2013 17:21:41 +0000 To: kde-telepathy Subject: Re: Metacontacts/KPeople status Message-Id: X-MARC-Message: https://marc.info/?l=kde-telepathy&m=135913383522371 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2129341572853371258==" --===============2129341572853371258== Content-Type: multipart/alternative; boundary=e89a8f23468548cf5704d41ffec5 --e89a8f23468548cf5704d41ffec5 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jan 21, 2013 at 1:24 PM, Martin Klapetek wrote: > Hey everyone, > Hey Martin Sorry about the delay. Long emails and patches scare me. > here's how it currently looks with our metacontacts. KPeople is fully > usable now. The API as well as the code needs some cleanup, but right now > everything we want is there and working. > > Overview: > * grouping/ungrouping contacts (even with non-IM contacts) > * starting chats/audio/video > * getting detailed info about persons > > What's missing > * editing stuff > > - this is very easy in terms of code, but becomes quite complex in the > bigger picture; we need writeback services in Nepomuk in order for this to > work sensibly. Right now we're getting data from Akonadi and Telepathy. If > we change say a nickname in contact list (with kpeople), this change should > be written back to Telepathy. Same goes for Akonadi of course. Otherwise > we're in a state where two data providers have inconsistent data and that > can lead to problems. OR we can do all changes only locally in Nepomuk. > What's bad about that is that the changes will be kept only locally. On the > other hand, the grouping into metacontacts will also be just local. > Vishesh, what's your take on this? > > If we decide to only writeback changes back to Nepomuk. It will result in us having 2 additional processes which monitor the Nepomuk store for changes (not that cheap) and keep writing back to Akonadi and Telepathy. Additionally, we already have a process in Akonadi which writes data to Nepomuk, and the same for Telepathy. Do we really want 4 process continuously synchronizing all the data? It seems like a massive waste of cycles. Also, it doesn't really accomplish anything. Here is the data that we currently have - 1. Basic contact data such as nickname, fullname, and other details 2. Contact groups and grouping information 3. Meta-contacts information: This person consists of these contacts. Does Akonadi need any of this information? My take would be to just write the data back in Telepathy (if possible), and let Nepomuk update itself from the feeder, or manually update Nepomuk. Both approaches work fine. Synchronization is hard problem. In this case it does not seem like really we need to synchronize anything. * contact's offline presence > > - for the contact list to work properly with kpeople, one needs to have > the ktp-nepomuk-feeder running ALL the time. Once it's down, we're screwed. > Currently there's a different problem though - when the service shuts down > (logout or reboot for example), it leaves all the presences in Nepomuk in > whatever state they were. This means when you relogin and run the contact > list, all the contacts have wrong presences until the feeder kicks in and > puts correct data into Nepomuk. If the feeder for whatever reason won't > start, the user is left with random invalid presences. It could write > offline presence while being destroyed, but that would need to be > synchronous job which can take some time, which means delaying > reboot/logout/whatever for no apparent/visible reason to the user. We were > talking if we could reuse KTp presences as we have them available in almost > realtime, but that means combining two models (where one queries the other) > and I don't like that very much. > > Storing the presence in Nepomuk seems to cause more problems than it solves. Does it really solve anything? We have all the data to fetch the presence in real-time - account identifier, and the contact identifier. > * good startup time > > - currently we're at ~3 secs before contact list shows up with ~800 > contacts. I'll investigate where's the holdup and see what we can do about > it. > > I can help with this :) > > If we can get at least the last 4 tasks sorted (plus filtering), I'm very > happy to ship it with 0.6 as a tech-preview. The metacontacts users create > in this should prevail once we get the full thing released. > > The development is happening in branches - kde:libkpeople - > mklapetek/toplevel_contacts and kde:ktp-contact-list - mklapetek/kpeople. > I'll spend this week on cleaning up kpeople and tuning the performance. > > If you'd like to help out, let me know and I'll point out exactly what > needs doing. > > Cheers > -- > Martin Klapetek | KDE Developer > --e89a8f23468548cf5704d41ffec5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Mon, Jan 21, 2013 at 1:24 PM, Martin Klapetek = <martin.k= lapetek@gmail.com> wrote:
Hey everyone,
Hey Martin

Sorry about the delay. Long emails and patch= es scare me.
=A0
here's how it currentl= y looks with our metacontacts. KPeople is fully usable now. The API as well= as the code needs some cleanup, but right now everything we want is there = and working.

Overview:
=A0* grouping/ungrouping contacts (= even with non-IM contacts)
=A0* starting chats/audio/video
<= div>=A0* getting detailed info about persons

What&= #39;s missing
=A0* editing stuff
- this is very easy in terms of code, but becomes qu= ite complex in the bigger picture; we need writeback services in Nepomuk in= order for this to work sensibly. Right now we're getting data from Ako= nadi and Telepathy. If we change say a nickname in contact list (with kpeop= le), this change should be written back to Telepathy. Same goes for Akonadi= of course. Otherwise we're in a state where two data providers have in= consistent data and that can lead to problems. OR we can do all changes onl= y locally in Nepomuk. What's bad about that is that the changes will be= kept only locally. On the other hand, the grouping into metacontacts will = also be just local. Vishesh, what's your take on this?

If we decide to only writebac= k changes back to Nepomuk. It will result in us having 2 additional process= es which monitor the Nepomuk store for changes (not that cheap) and keep wr= iting back to Akonadi and Telepathy. Additionally, we already have a proces= s in Akonadi which writes data to Nepomuk, and the same for Telepathy.

Do we really want 4 process continuously synchronizing all the data? It= seems like a massive waste of cycles. Also, it doesn't really accompli= sh anything.
=A0
Here is the data that we currently have -=

1. Basic contact data such as nickname, fullname, and other = details
2. Contact groups and grouping information
<= div>3. Meta-contacts information: This person consists of these contacts.
Does Akonadi need any of this information?

My take would be to just write the data back in Telepathy (if possible), a= nd let Nepomuk update itself from the feeder, or manually update Nepomuk. B= oth approaches work fine.

Synchronization is hard problem. In this case it does not seem li= ke really we need to synchronize anything.

=A0* contact's offline presence
- for = the contact list to work properly with kpeople, one needs to have the ktp-n= epomuk-feeder running ALL the time. Once it's down, we're screwed. = Currently there's a different problem though - when the service shuts d= own (logout or reboot for example), it leaves all the presences in Nepomuk = in whatever state they were. This means when you relogin and run the contac= t list, all the contacts have wrong presences until the feeder kicks in and= puts correct data into Nepomuk. If the feeder for whatever reason won'= t start, the user is left with random invalid presences. It could write off= line presence while being destroyed, but that would need to be synchronous = job which can take some time, which means delaying reboot/logout/whatever f= or no apparent/visible reason to the user. We were talking if we could reus= e KTp presences as we have them available in almost realtime, but that mean= s combining two models (where one queries the other) and I don't like t= hat very much.

Storing the presence in Nepom= uk seems to cause more problems than it solves. Does it really solve anythi= ng?

We have all the data to fetch the presence in real-ti= me - account identifier, and the contact identifier.
=A0
=A0* good startup time
- currently we're at ~3 secs before contac= t list shows up with ~800 contacts. I'll investigate where's the ho= ldup and see what we can do about it.

I can help with this :)
= =A0

If we can get at least the last 4 tasks so= rted (plus filtering), I'm very happy to ship it with 0.6 as a tech-pre= view. The metacontacts users create in this should prevail once we get the = full thing released.

The development is happening in branches - kde:libkpeop= le - mklapetek/toplevel_contacts and kde:ktp-contact-list - mklapetek/kpeop= le. I'll spend this week on cleaning up kpeople and tuning the performa= nce.

If you'd like to help out, let me know and I'll= point out exactly what needs doing.

Cheers
<= span class=3D"HOEnZb">--
Martin Klapetek | KDE=A0Developer

--e89a8f23468548cf5704d41ffec5-- --===============2129341572853371258== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KDE-Telepathy mailing list KDE-Telepathy@kde.org https://mail.kde.org/mailman/listinfo/kde-telepathy --===============2129341572853371258==--