Bug 307814

Summary: Create group is disabled
Product: [Frameworks and Libraries] Akonadi Reporter: S. Burmeister <sven.burmeister>
Component: Google ResourceAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs, kitts.mailinglists, montel, tokoe
Priority: NOR    
Version: 4.10   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.11
Attachments: screenshot of disabled "add group" item.

Description S. Burmeister 2012-10-04 08:15:57 UTC
If I open file > new the item for "create new group (CTRL+G)" is disabled.

KDE SC 4.9.2 

Reproducible: Always
Comment 1 Laurent Montel 2012-10-04 09:54:28 UTC
enabled here.
Please add screenshot.
Comment 2 S. Burmeister 2012-10-04 10:31:01 UTC
Created attachment 74330 [details]
screenshot of disabled "add group" item.
Comment 3 Laurent Montel 2012-10-04 18:13:49 UTC
there is just this code:

      if ( mActions.contains( StandardContactActionManager::CreateContactGroup ) ) {
        mActions[ StandardContactActionManager::CreateContactGroup ]->setEnabled( hasWritableCollection( KABC::ContactGroup::mimeType() ) );
      }

=> so you select a item which is not writable ?
Comment 4 S. Burmeister 2012-10-04 19:16:46 UTC
Since I can add normal contacts the resource seems writable.
Comment 5 Laurent Montel 2012-10-05 05:59:38 UTC
so no idea...
Comment 6 Tobias Koenig 2013-03-03 13:59:35 UTC
Hej,

the Akonadi resource, which provides the collection (folder) you want to add the Contact group to, does not support to store Contact groups. What kind of resource it that? Can you test with a recent version, please?
Comment 7 S. Burmeister 2013-03-03 14:26:41 UTC
Google contacts.
Comment 8 Christoph Feck 2013-04-14 12:01:21 UTC
Reopen based on recent change.
Comment 9 Daniel Vrátil 2013-04-15 06:57:05 UTC
Support for contacts groups has been added in KDE 4.11

Note that File -> New -> Group will never work with the Google resource, since Google does not support this kind of groups (i.e. vCard-based - essentially just a contact with multiple different email addresses). 

Instead a group will be a subcollection containing full-featured contacts. See http://www.progdan.cz/2013/03/kde-pim-google-integration-and-more/ for more details.
Comment 10 Kishore 2014-04-25 05:19:08 UTC
(In reply to comment #9)
> Support for contacts groups has been added in KDE 4.11
> 
> Note that File -> New -> Group will never work with the Google resource,
> since Google does not support this kind of groups (i.e. vCard-based -
> essentially just a contact with multiple different email addresses). 
> 
> Instead a group will be a subcollection containing full-featured contacts.
> See http://www.progdan.cz/2013/03/kde-pim-google-integration-and-more/ for
> more details.

This does seem to work perfectly. Now if a contact is present in multiple groups, the contact shows up multiple times in the list. This really not good as it makes me feel that there are duplicates.