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 653680 - Change ImDetails.im_addresses to support vCard-like arbitrary parameters
Change ImDetails.im_addresses to support vCard-like arbitrary parameters
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: folks-0.6.0
Assigned To: folks-maint
folks-maint
Depends on:
Blocks: 653233 653684 655597 655609 655911
 
 
Reported: 2011-06-29 22:01 UTC by Travis Reitter
Modified: 2011-08-12 15:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add ImFieldDetails to provide vCard-like arbitrary parameters to IM addresses (36.88 KB, patch)
2011-07-16 00:02 UTC, Travis Reitter
reviewed Details | Review

Description Travis Reitter 2011-06-29 22:01:27 UTC
The main purpose of this change is to support the lossless expression of our
IM addresses as vCard attributes (and vice versa).

Proposed API changes:

+  /* { protocol => { (params, im-address), ... } } 
-  public abstract MultiMap<string, string> im_addresses
+  public abstract MultiMap<string, FieldDetails> im_addresses
Comment 1 Philip Withnall 2011-06-29 23:33:38 UTC
See bug #653682 comment #1 for my thoughts on FieldDetails.
Comment 2 Travis Reitter 2011-07-16 00:02:59 UTC
Created attachment 192064 [details] [review]
Add ImFieldDetails to provide vCard-like arbitrary parameters to IM addresses

Patches from branch:

http://cgit.collabora.com/git/user/treitter/folks.git/log/?h=bgo653680-im-vcard-3
Comment 3 Philip Withnall 2011-07-17 23:32:01 UTC
Review of attachment 192064 [details] [review]:

Splinter's refusing to work properly on this patch either. :-(

ImFieldDetails:
 • Should document that null for the parameters argument is equivalent to the empty collection of parameters in the ImFieldDetails constructor.
 • ImFieldDetails.hash() and .equal() are missing @since documentation tags.

IndividualAggregator:
 • Is the _prepare_pending stuff supposed to be in this patch?

Rest looks fine to me!
Comment 4 Travis Reitter 2011-08-12 15:59:10 UTC
commit 5fa28ed5366fcf9d435fd2b746c6fa5530b26fed
Author: Travis Reitter <travis.reitter@collabora.co.uk>
Date:   Thu Jul 14 11:08:43 2011 -0700

    Support vCard-like parameters for IM addresses
    
    Helps: bug#653680 - Change ImDetails.im_addresses to support vCard-like
    arbitrary parameters

commit 961e0ff5c62e7fda61d14f5664e8d943dc166673
Author: Travis Reitter <travis.reitter@collabora.co.uk>
Date:   Fri Jul 8 16:35:15 2011 -0700

    Clean up the way the Tracker backend tracks IM addresses.
    
    Helps: bug#653680 - Change ImDetails.im_addresses to support vCard-like
    arbitrary parameters