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 695885 - Add a way to filter accounts and provider by feature provided
Add a way to filter accounts and provider by feature provided
Status: RESOLVED WONTFIX
Product: gnome-control-center
Classification: Core
Component: Online Accounts
git master
Other All
: Normal enhancement
: ---
Assigned To: GNOME Online Accounts maintainer(s)
Control-Center Maintainers
3.10
Depends on: 695886 696054
Blocks: 696267
 
 
Reported: 2013-03-14 22:15 UTC by Emanuele Aina
Modified: 2018-04-17 09:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
online-accounts: Filter accounts and providers by provided feature (23.46 KB, patch)
2013-03-14 22:28 UTC, Emanuele Aina
none Details | Review
online-accounts: Filter accounts and providers by provided feature (23.46 KB, patch)
2013-03-14 22:53 UTC, Emanuele Aina
none Details | Review
online-accounts: Move from _provider_group() to _provider_features() (2.92 KB, patch)
2013-03-15 13:08 UTC, Emanuele Aina
none Details | Review
online-accounts: Move from _provider_group() to _provider_features() (2.92 KB, patch)
2013-03-18 12:46 UTC, Emanuele Aina
rejected Details | Review
online-accounts: Filter accounts and providers by provided feature (24.53 KB, patch)
2013-03-18 12:47 UTC, Emanuele Aina
rejected Details | Review

Description Emanuele Aina 2013-03-14 22:15:57 UTC
When editing accounts from a specific program it may be useful to avoid showing the ones not related to the application: eg. when invoked from Empathy, Online Accounts should show only the accounts and providers that are able to provide an instant messaging service.
Comment 1 Emanuele Aina 2013-03-14 22:28:07 UTC
Created attachment 238939 [details] [review]
online-accounts: Filter accounts and providers by provided feature

This adds a 'show' sub-sub-command to the online-accounts panel,
accepting the name of the feature for which to filter. To only see
accounts and providers with mail capabilities launch g-c-c like this:

$ gnome-control-center online-accounts show mail


*** NOTE ***
this patch depends on the GVariant-based parameters passing rework from
bug #694315:
https://bugzilla.gnome.org/attachment.cgi?id=237722
Comment 2 Emanuele Aina 2013-03-14 22:53:52 UTC
Created attachment 238943 [details] [review]
online-accounts: Filter accounts and providers by provided feature

This adds a 'show' sub-sub-command to the online-accounts panel,
accepting the name of the feature for which to filter. To only see
accounts and providers with mail capabilities launch g-c-c like this:

$ gnome-control-center online-accounts show mail
Comment 3 Emanuele Aina 2013-03-15 13:08:35 UTC
Created attachment 238977 [details] [review]
online-accounts: Move from _provider_group() to _provider_features()

With the attachment https://bugzilla.gnome.org/attachment.cgi?id=238975 to
bug #695886 goa_provider_get_provider_group() has been deprecated in favour
of goa_provider_get_provider_features() which returns a bitmask of flags
instead of an enum.
Comment 4 Emanuele Aina 2013-03-18 12:46:21 UTC
Created attachment 239123 [details] [review]
online-accounts: Move from _provider_group() to _provider_features()

goa_provider_get_provider_group() has been deprecated in favour of
goa_provider_get_provider_features() which returns a bitmask of flags
instead of an enum.
Comment 5 Emanuele Aina 2013-03-18 12:47:22 UTC
Created attachment 239124 [details] [review]
online-accounts: Filter accounts and providers by provided feature

This adds a '--feature' command line flag to the online-accounts panel,
accepting the name of the feature for which to filter. To only see
accounts and providers with mail capabilities launch g-c-c like this:

$ gnome-control-center online-accounts --feature mail


Rebased on top of current master+bug #696054 to be able to use the --feature flag.
Comment 6 Debarshi Ray 2013-03-19 11:47:25 UTC
Review of attachment 239123 [details] [review]:

Looks good to me. Bastien?
Comment 7 Allan Day 2013-03-21 14:51:35 UTC
What if someone jumps from Empathy to GOA, with the intention of doing something not related to Empathy? People use this type of workaround all the time.
Comment 8 Bastien Nocera 2013-03-26 16:44:53 UTC
(In reply to comment #7)
> What if someone jumps from Empathy to GOA, with the intention of doing
> something not related to Empathy? People use this type of workaround all the
> time.

Exactly my problem with this feature. A good way to work-around that problem might be to have another way to present the different accounts, by type instead of by provider, and simply focus the chat type when you come from empathy. But that would require quite a few changes in the UI.
Comment 9 Travis Reitter 2013-06-19 17:14:53 UTC
Allan, could you please mock-up a UI for GOA that would satisfy Bastien's description in comment #8? I think I see what he's saying but I'm not sure the best way to lay it out.
Comment 10 Marco Barisione 2013-07-22 12:57:40 UTC
A possible solution would be to have an info bar that says something like “Diplaying only chat accounts” with a button “Show everything” when the control centre is opened from empathy.
Maybe it's not pretty, but I'm not a designer :) Anyway, I think we would need something that, from a practical point of view, is similar to this.
Comment 11 Debarshi Ray 2013-08-21 13:01:16 UTC
Review of attachment 239123 [details] [review]:

::: panels/online-accounts/cc-online-accounts-add-account-dialog.c
@@ +421,3 @@
+    {
+      g_warning ("Unable to classify provider '%s'", goa_provider_get_provider_type (provider));
+      return;

I prefer the g_assert_not_reached, because this shouldn't happen unless you are running mismatched GOA and g-c-c versions. See my comment in bug 706148 about this.
Comment 12 Debarshi Ray 2013-08-21 13:06:19 UTC
Review of attachment 239124 [details] [review]:

Looks good to me, assuming that the designers are happy with it.
Comment 13 Bastien Nocera 2015-02-10 12:56:35 UTC
Comment on attachment 239124 [details] [review]
online-accounts: Filter accounts and providers by provided feature

Marking as needs-work as it doesn't match the UI requested, and it doesn't apply cleanly any more.
Comment 14 Debarshi Ray 2018-04-17 09:34:47 UTC
Sadly, this bug has been obsoleted by the fact that the Empathy / Telepathy stack has been abandoned in GNOME. As a result, the Telepathy provider is being dropped from gnome-online-accounts (bug 795322).

Moreover, the original intention behind this bug was that Empathy would eventually drop its own account management UI and just rely on Settings -> Online Accounts. That hasn't happened, and it won't be prudent to do so given that Empathy and Telepathy are no longer core components of GNOME.
Comment 15 Debarshi Ray 2018-04-17 09:35:35 UTC
Review of attachment 239123 [details] [review]:

:(
Comment 16 Debarshi Ray 2018-04-17 09:35:55 UTC
Review of attachment 239124 [details] [review]:

:(