After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677442 - Remove contacts search provider
Remove contacts search provider
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: telepathy
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Shell Telepathy maintainer(s)
gnome-shell-maint
: 678013 (view as bug list)
Depends on: 679002
Blocks:
 
 
Reported: 2012-06-05 07:45 UTC by Xavier Claessens
Modified: 2012-07-03 10:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
overview: Remove contacts search provider (10.71 KB, patch)
2012-06-27 18:48 UTC, Florian Müllner
committed Details | Review
shell: Remove ContactSystem (20.29 KB, patch)
2012-06-27 18:48 UTC, Florian Müllner
committed Details | Review
search: Remove createResultContainer() hook (1.94 KB, patch)
2012-06-27 18:48 UTC, Florian Müllner
committed Details | Review

Description Xavier Claessens 2012-06-05 07:45:20 UTC
gnome-shell uses folks to display contacts in the overview when searching. This is a great features... but...

With facebook, g+ and some EDS ldap, folks is freezing gnome-shell for some very long seconds each time an account goes online/offline.

gnome-shell being a single process doing the coffee and eventually doing a WM as well, such freezes are criticals. I prefer not having my contacts when searching apps than having my WM freeze for 5s when I put myself online.

I suggest dropping folks support until folks performances are at least 20x better.

Folks bug #671636 has some initial analysis of the freezes issue.
Comment 1 Xavier Claessens 2012-06-05 08:14:07 UTC
After discussion on IRC, it seems gnome-shell is capable to ask other apps to give search results. If that's true, one solution would be to ask gnome-contacts to give the contact info matching the result.

I think that stuff like folks has nothing to do in the WM process, whatever is the quality of folks. So deleguating to another app would be the best solution IMO.
Comment 2 Guillaume Desmottes 2012-06-05 09:03:08 UTC
Yes, gnome-contacts should implement a search provider so this code can move out of the Shell.
Comment 3 Travis Reitter 2012-06-11 16:42:18 UTC
On the other hand, we'll have search-based retrieval in Folks eventually (bug #646808).

And either way, gnome-contacts will just be using Folks itself. So, I don't see the point, exactly.

Maybe there's room to fix the way Folks-based search works in the shell (it's a very naive implementation last I checked) and the peak resource usage of Folks in your case, but I don't see how routing it all through an application would help.
Comment 4 Guillaume Desmottes 2012-06-12 06:19:44 UTC
Being an external search provider will move Folks' code out of Shell's process and so, hopefully, stop blocking the Shell while Folks' is number crushing.
Comment 5 Florian Müllner 2012-06-13 12:51:40 UTC
*** Bug 678013 has been marked as a duplicate of this bug. ***
Comment 6 Florian Müllner 2012-06-27 18:46:41 UTC
Let's keep this bug to the shell parts  ...
Comment 7 Florian Müllner 2012-06-27 18:48:05 UTC
Created attachment 217446 [details] [review]
overview: Remove contacts search provider

With gnome-contacts implementing a remote search provider, the
built-in contacts search is now unnecessary duplication; remote it.
Comment 8 Florian Müllner 2012-06-27 18:48:14 UTC
Created attachment 217447 [details] [review]
shell: Remove ContactSystem

Remove the now unused ShellContactSystem. As a side effect, we no
longer depend on folks now.
Comment 9 Florian Müllner 2012-06-27 18:48:22 UTC
Created attachment 217448 [details] [review]
search: Remove createResultContainer() hook

It is now unused since the contacts search provider was the only
consumer, so remove it.
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-06-27 18:52:52 UTC
Review of attachment 217446 [details] [review]:

Sure.
Comment 11 Jasper St. Pierre (not reading bugmail) 2012-06-27 18:53:22 UTC
Review of attachment 217447 [details] [review]:

Sure.
Comment 12 Florian Müllner 2012-06-29 14:07:16 UTC
Attachment 217446 [details] pushed as fd256b6 - overview: Remove contacts search provider
Attachment 217447 [details] pushed as 970b9de - shell: Remove ContactSystem
Comment 13 Guillaume Desmottes 2012-07-03 08:25:29 UTC
What about the last patch? Can we close this bug now the search provider has been removed?
Comment 14 Florian Müllner 2012-07-03 09:21:13 UTC
I'd still like the last patch to land ...
Comment 15 Jasper St. Pierre (not reading bugmail) 2012-07-03 09:29:24 UTC
Review of attachment 217448 [details] [review]:

Looks fine.

(Sorry, it seems I just forgot to hit Publish on the review)
Comment 16 Xavier Claessens 2012-07-03 09:49:43 UTC
Awesome, thanks for the work!
Comment 17 Florian Müllner 2012-07-03 10:21:26 UTC
Attachment 217448 [details] pushed as 59246ba - search: Remove createResultContainer() hook