platform/upstream/folks.git
12 years agobuild: Bump the Vala dependency to 0.13.3
Philip Withnall [Mon, 22 Aug 2011 19:23:50 +0000 (20:23 +0100)]
build: Bump the Vala dependency to 0.13.3

This is due to commit c0ecad63015078231934e63ec63f02b97defb730.

12 years agoe-d-s: Vala dropped support for reordering GCancellable params
Raul Gutierrez Segales [Mon, 22 Aug 2011 12:51:28 +0000 (13:51 +0100)]
e-d-s: Vala dropped support for reordering GCancellable params

A couple of e-d-s methods (get_contact, modify_contact,
get_backend_property, etc) experienced an automatic API
change in it's Vala binding due to Vala dropping support
for reordering GCancellable params.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=657067

12 years agocore: Fix some whitespace
Philip Withnall [Sun, 21 Aug 2011 11:10:22 +0000 (12:10 +0100)]
core: Fix some whitespace

12 years agoe-d-s: ignore the type when comparing images
Raul Gutierrez Segales [Wed, 17 Aug 2011 14:48:39 +0000 (15:48 +0100)]
e-d-s: ignore the type when comparing images

12 years agoe-d-s: update the Avatar Details test
Raul Gutierrez Segales [Mon, 15 Aug 2011 12:30:42 +0000 (13:30 +0100)]
e-d-s: update the Avatar Details test

Now that we've reworked avatar handling and we've
introduced an Avatar cache, the avatars associated
to a newly created e-d-s contact might not be immediately
available after the corresponding Edsf.Persona is created.
Hence we need to listen to notifications for the avatar
property.

12 years agoe-d-s: Only set avatar if store_avatar () was successful
Raul Gutierrez Segales [Thu, 4 Aug 2011 15:09:12 +0000 (16:09 +0100)]
e-d-s: Only set avatar if store_avatar () was successful

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=655374

12 years agoe-d-s: When an avatar has been removed, set it to null
Raul Gutierrez Segales [Thu, 4 Aug 2011 15:08:06 +0000 (16:08 +0100)]
e-d-s: When an avatar has been removed, set it to null

Though new_avatar was null, I prefer to even more
obvious about what is going on.

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=655374

12 years agoe-d-s: Don't infer we already have an avatar in our cache by its URI
Raul Gutierrez Segales [Thu, 4 Aug 2011 14:55:09 +0000 (15:55 +0100)]
e-d-s: Don't infer we already have an avatar in our cache by its URI

From libfolks we should discourage using local URIs to
set an EContactPhoto so even if we get inlined EContactPhoto
just do a full content comparison.

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=655374

12 years agoDon't manipulate the Avatar Cache before e-d-s acks changes
Raul Gutierrez Segales [Thu, 4 Aug 2011 14:44:28 +0000 (15:44 +0100)]
Don't manipulate the Avatar Cache before e-d-s acks changes

Also, lets set EContactPhotos as INLINED because it doesn't
make sense to use URIs for local files. In the future, when
we support gravatars, we'll have to handle the case of
setting ContactPhotos as URIs for those.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=655374

12 years agoDo Tracker tests last, since they're most likely to fail uncontrollably.
Travis Reitter [Thu, 28 Jul 2011 17:08:09 +0000 (10:08 -0700)]
Do Tracker tests last, since they're most likely to fail uncontrollably.

Helps: bgo#655374 - Un-break Tracker avatar tests

12 years agoAdd utility function to compare LoadableIcon content.
Travis Reitter [Tue, 26 Jul 2011 22:53:02 +0000 (15:53 -0700)]
Add utility function to compare LoadableIcon content.

Unlike the various "equal()" functions for LoadableIcon and related classes,
this function actually compares image content (which can be necessary when
testing vs. images in the avatar cache, which may have a different path than an
otherwise-identical image).

Helps: bgo#655374 - Un-break Tracker avatar tests

12 years agoUpdate NEWS file
Raul Gutierrez Segales [Wed, 17 Aug 2011 00:28:50 +0000 (01:28 +0100)]
Update NEWS file

12 years agoeds: Support writing postal addresses as vcards
Alexander Larsson [Tue, 16 Aug 2011 14:53:14 +0000 (16:53 +0200)]
eds: Support writing postal addresses as vcards

https://bugzilla.gnome.org/show_bug.cgi?id=656659

12 years agoGeneralize Edsf.PersonaStore._set_contact_attributes
Alexander Larsson [Tue, 16 Aug 2011 12:06:33 +0000 (14:06 +0200)]
Generalize Edsf.PersonaStore._set_contact_attributes

We need to handle non-string field details values when we implement
postal addresses.

https://bugzilla.gnome.org/show_bug.cgi?id=656659

12 years agoRead postal addresses as vcards
Alexander Larsson [Tue, 16 Aug 2011 12:06:10 +0000 (14:06 +0200)]
Read postal addresses as vcards

https://bugzilla.gnome.org/show_bug.cgi?id=656659

12 years agoBreak out common code in edsf backend
Alexander Larsson [Tue, 16 Aug 2011 12:04:44 +0000 (14:04 +0200)]
Break out common code in edsf backend

Most types use the same code to update the vcard params, so we
can share this code.

https://bugzilla.gnome.org/show_bug.cgi?id=656659

12 years agoinspect: Ensure to initialise out variables
Philip Withnall [Tue, 16 Aug 2011 20:41:47 +0000 (21:41 +0100)]
inspect: Ensure to initialise out variables

This fixes a few compiler warnings.

12 years agocore: Fix use of deprecated Vala API
Philip Withnall [Tue, 16 Aug 2011 20:41:32 +0000 (21:41 +0100)]
core: Fix use of deprecated Vala API

12 years agoeds: Don't copy EVCardAttributes at all
Philip Withnall [Tue, 16 Aug 2011 18:40:35 +0000 (19:40 +0100)]
eds: Don't copy EVCardAttributes at all

libebook does some icky things with EVCardAttributes it's passed, especially
when calling e_vcard_remove_attribute() (it removes by pointer comparison
and then unconditionally frees the passed-in attribute). Consequently, we
need to do everything we can to avoid copying EVCardAttributes unless we
want double-frees and memory leaks.

12 years agoDon't use const string[] , Vala doesn't handle them correctly
Raul Gutierrez Segales [Tue, 16 Aug 2011 19:03:03 +0000 (20:03 +0100)]
Don't use const string[] , Vala doesn't handle them correctly

12 years agoMake sure we pass ENABLE_EDS to vala flags
Alexander Larsson [Tue, 16 Aug 2011 12:03:17 +0000 (14:03 +0200)]
Make sure we pass ENABLE_EDS to vala flags

12 years agoinspect: Remove workarounds for bgo#638363
Philip Withnall [Sun, 14 Aug 2011 17:48:37 +0000 (18:48 +0100)]
inspect: Remove workarounds for bgo#638363

See also: bgo#656467.

12 years agoPost-release version bump.
Travis Reitter [Sat, 13 Aug 2011 16:58:00 +0000 (18:58 +0200)]
Post-release version bump.

12 years agoRelease version 0.6.0 FOLKS_0_6_0
Travis Reitter [Sat, 13 Aug 2011 11:12:22 +0000 (13:12 +0200)]
Release version 0.6.0

12 years agoUpdate the checked files for valac requirement.
Travis Reitter [Sat, 13 Aug 2011 16:27:13 +0000 (18:27 +0200)]
Update the checked files for valac requirement.

12 years agoDistribute EDS test tools.
Travis Reitter [Sat, 13 Aug 2011 15:33:37 +0000 (17:33 +0200)]
Distribute EDS test tools.

12 years agoUn-break Docs.
Travis Reitter [Sat, 13 Aug 2011 11:00:32 +0000 (13:00 +0200)]
Un-break Docs.

12 years agoWrite support for URLs in Edsf.Persona
Travis Reitter [Sat, 13 Aug 2011 10:33:39 +0000 (12:33 +0200)]
Write support for URLs in Edsf.Persona

Closes: bgo#655609 - Implement setter for URLs

12 years agoinspect: Fix listing GStrv properties
Philip Withnall [Sat, 13 Aug 2011 17:56:30 +0000 (18:56 +0100)]
inspect: Fix listing GStrv properties

We have to work around bgo#656467 for the moment.

12 years agoinspect: Update folks-inspect for the FieldDetails changes
Philip Withnall [Sat, 13 Aug 2011 17:05:50 +0000 (18:05 +0100)]
inspect: Update folks-inspect for the FieldDetails changes

12 years agoMake the EDS backend's system address book the default writeable
Travis Reitter [Sat, 13 Aug 2011 10:18:29 +0000 (12:18 +0200)]
Make the EDS backend's system address book the default writeable

Closes: bgo#648818 - Support the EDS backend being a primary

12 years agoTrivial NEWS clean-up.
Travis Reitter [Sat, 13 Aug 2011 10:20:02 +0000 (12:20 +0200)]
Trivial NEWS clean-up.

12 years agoRemove FieldDetails (obsoleted by AbstractFieldDetails and implementors)
Travis Reitter [Thu, 11 Aug 2011 14:44:53 +0000 (16:44 +0200)]
Remove FieldDetails (obsoleted by AbstractFieldDetails and implementors)

12 years agoSupport vCard-like parameters for URLs
Travis Reitter [Thu, 11 Aug 2011 14:37:22 +0000 (16:37 +0200)]
Support vCard-like parameters for URLs

Closes: bgo#655922 - Rebase UrlDetails.urls upon an
AbstractFieldDetails-derived class

12 years agoSupport vCard-like parameters for Roles
Travis Reitter [Thu, 11 Aug 2011 11:23:01 +0000 (13:23 +0200)]
Support vCard-like parameters for Roles

Closes: bug#655921 - Change RoleDetails.roles to support vCard-like arbitrary parameters

12 years agoSupport vCard-like parameters for web service addresses
Travis Reitter [Tue, 9 Aug 2011 15:40:41 +0000 (17:40 +0200)]
Support vCard-like parameters for web service addresses

Closes: bgo#653682 - Change WebServiceDetails.web_service_addresses to support
vCard-like arbitrary parameters

12 years agoRebase PhoneDetails.phone_numbers upon PhoneFieldDetails
Travis Reitter [Tue, 9 Aug 2011 13:59:16 +0000 (15:59 +0200)]
Rebase PhoneDetails.phone_numbers upon PhoneFieldDetails

Closes: bgo#655920 - Rebase PhoneDetails.phone_numbers upon an
AbstractFieldDetails-derived class

12 years agoAllow for Individual replacement in the EDS add-persona test.
Travis Reitter [Mon, 8 Aug 2011 15:27:04 +0000 (17:27 +0200)]
Allow for Individual replacement in the EDS add-persona test.

12 years agoRebase NoteDetails.notes upon NoteFieldDetails
Travis Reitter [Mon, 8 Aug 2011 14:08:36 +0000 (16:08 +0200)]
Rebase NoteDetails.notes upon NoteFieldDetails

Closes: bgo#655919 - Rebase NoteDetails.notes upon an
AbstractFieldDetails-derived class

12 years agoSet the eds backend as the primary for the eds tests.
Travis Reitter [Thu, 4 Aug 2011 01:43:17 +0000 (18:43 -0700)]
Set the eds backend as the primary for the eds tests.

This fixes the eds/link-personas test.

12 years agoRebase EmailDetails.email_addresses upon EmailFieldDetails
Travis Reitter [Wed, 3 Aug 2011 20:49:32 +0000 (13:49 -0700)]
Rebase EmailDetails.email_addresses upon EmailFieldDetails

Closes: bgo#655917 - Rebase EmailDetails.email_addresses upon an
AbstractFieldDetails-derived class

12 years agoRun key-file tests later, since it's a low-priority backend.
Travis Reitter [Wed, 3 Aug 2011 20:47:24 +0000 (13:47 -0700)]
Run key-file tests later, since it's a low-priority backend.

12 years agoRun Tracker tests last, since it's a low-priority backend.
Travis Reitter [Wed, 3 Aug 2011 20:29:44 +0000 (13:29 -0700)]
Run Tracker tests last, since it's a low-priority backend.

They're also most likely to fail for reasons outside of our control.

12 years agoAdd utility function to compare MultiMaps of AbstractFieldDetails.
Travis Reitter [Tue, 2 Aug 2011 22:12:24 +0000 (15:12 -0700)]
Add utility function to compare MultiMaps of AbstractFieldDetails.

12 years agoClarify parameters for PostalAddressOwnerDetails.
Travis Reitter [Fri, 22 Jul 2011 23:49:40 +0000 (16:49 -0700)]
Clarify parameters for PostalAddressOwnerDetails.

12 years agoAdd basic equality testing for ImFieldDetails.
Travis Reitter [Tue, 12 Jul 2011 18:20:56 +0000 (11:20 -0700)]
Add basic equality testing for ImFieldDetails.

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

12 years agoSupport vCard-like parameters for IM addresses
Travis Reitter [Thu, 14 Jul 2011 18:08:43 +0000 (11:08 -0700)]
Support vCard-like parameters for IM addresses

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

12 years agoClean up the way the Tracker backend tracks IM addresses.
Travis Reitter [Fri, 8 Jul 2011 23:35:15 +0000 (16:35 -0700)]
Clean up the way the Tracker backend tracks IM addresses.

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

12 years agoDon't spill over 80 characters.
Travis Reitter [Fri, 8 Jul 2011 21:14:21 +0000 (14:14 -0700)]
Don't spill over 80 characters.

12 years agoSupport vCard-like parameters for addresses in PostalAddressDetails.
Travis Reitter [Thu, 14 Jul 2011 18:38:31 +0000 (11:38 -0700)]
Support vCard-like parameters for addresses in PostalAddressDetails.

This also removes the older, less-functional, less-consistent
PostalAddress.types.

Helps: bgo#653679 - Change PostalAddressDetails.postal_addresses to
support vCard-like arbitrary parameters

12 years agoAdd test for parameter equality in FieldDetails.
Travis Reitter [Tue, 12 Jul 2011 18:48:43 +0000 (11:48 -0700)]
Add test for parameter equality in FieldDetails.

Helps: bgo#653679 - Change PostalAddressDetails.postal_addresses to
support vCard-like arbitrary parameters

12 years agoAdd basic equality testing for FieldDetails.
Travis Reitter [Tue, 12 Jul 2011 18:17:12 +0000 (11:17 -0700)]
Add basic equality testing for FieldDetails.

Helps: bgo#653679 - Change PostalAddressDetails.postal_addresses to
support vCard-like arbitrary parameters

12 years agoAdd parameters as an optional argument to the FieldDetails constructor.
Travis Reitter [Fri, 15 Jul 2011 23:36:33 +0000 (16:36 -0700)]
Add parameters as an optional argument to the FieldDetails constructor.

Helps: bgo#653679 - Change PostalAddressDetails.postal_addresses to
support vCard-like arbitrary parameters

12 years agoImplement FieldDetails.equal()/hash() in terms of the default.
Travis Reitter [Wed, 13 Jul 2011 22:35:00 +0000 (15:35 -0700)]
Implement FieldDetails.equal()/hash() in terms of the default.

This allows explicit references to FieldDetails.equal()/hash() for
structures storing them (in case it changes from the
AbstractFieldDetails implementation in the future).

Helps: bgo#653679 - Change PostalAddressDetails.postal_addresses to
support vCard-like arbitrary parameters

12 years agoAdd equal() and hash() functions to AbstractFieldDetails.
Travis Reitter [Tue, 12 Jul 2011 00:20:54 +0000 (17:20 -0700)]
Add equal() and hash() functions to AbstractFieldDetails.

Helps: bgo#653679 - Change PostalAddressDetails.postal_addresses to
support vCard-like arbitrary parameters

12 years agoCentralize parameters to AbstractFieldDetails.
Travis Reitter [Thu, 14 Jul 2011 23:57:01 +0000 (16:57 -0700)]
Centralize parameters to AbstractFieldDetails.

This cuts some lines of code from the derived classes.

Helps: bgo#653679 - Change PostalAddressDetails.postal_addresses to
support vCard-like arbitrary parameters

12 years agoRebase FieldDetails upon an abstract and generic version of itself.
Travis Reitter [Thu, 7 Jul 2011 18:10:58 +0000 (11:10 -0700)]
Rebase FieldDetails upon an abstract and generic version of itself.

This should be useful for cases where the value has a very specific type
(eg, for PostalAddressDetails.postal_addresses). We'll create subclasses of
FieldDetails for those cases.

When we've created all the appropriate derived classes, we'll remove
FieldDetails entirely.

Helps: bgo#653679 - Change PostalAddressDetails.postal_addresses to
support vCard-like arbitrary parameters

12 years agocore: Expand the documentation of EmailDetails.email_addresses
Philip Withnall [Tue, 9 Aug 2011 10:49:31 +0000 (12:49 +0200)]
core: Expand the documentation of EmailDetails.email_addresses

12 years agobuild: Add VAPI dependencies for eds backend
Philip Withnall [Tue, 9 Aug 2011 10:23:27 +0000 (12:23 +0200)]
build: Add VAPI dependencies for eds backend

12 years agocore: Fix a typo in NoteDetails documentation
Philip Withnall [Tue, 9 Aug 2011 10:23:13 +0000 (12:23 +0200)]
core: Fix a typo in NoteDetails documentation

12 years agoBug 653619 — Add company details
Philip Withnall [Tue, 9 Aug 2011 10:19:11 +0000 (12:19 +0200)]
Bug 653619 — Add company details

I dislike Tracker, ontologies, Sparql and drinking games.

Closes: bgo#653619

12 years agoeds: Fix a minor type problem in the add-contacts-stress-test
Philip Withnall [Sun, 7 Aug 2011 11:52:40 +0000 (13:52 +0200)]
eds: Fix a minor type problem in the add-contacts-stress-test

12 years agobuild: Build eds backend by default
Philip Withnall [Sun, 7 Aug 2011 11:36:11 +0000 (13:36 +0200)]
build: Build eds backend by default

Signed-off-by: Raul Gutierrez Segales <rgs@collabora.co.uk>
12 years agoe-d-s: fix link personas test
Raul Gutierrez Segales [Fri, 5 Aug 2011 18:49:58 +0000 (19:49 +0100)]
e-d-s: fix link personas test

We've changed the way we set up the writeable store in
commit 5c062183b (bug #654907) and that broke this test.

12 years agoDon't set a timeout for contacts adding stress test
Raul Gutierrez Segales [Wed, 3 Aug 2011 09:13:42 +0000 (10:13 +0100)]
Don't set a timeout for contacts adding stress test

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=655008

12 years agoBug 655008 — Tidy up error handling in eds backend
Philip Withnall [Wed, 20 Jul 2011 21:08:00 +0000 (22:08 +0100)]
Bug 655008 — Tidy up error handling in eds backend

Return more specific error codes from Edsf.PersonaStore methods where
possible, and in all cases make sure we've got a switch statement on the
incoming error code. Closes: bgo#655008

12 years agoClarify the documentation of PersonaStore.is_writeable
Philip Withnall [Tue, 2 Aug 2011 22:20:07 +0000 (23:20 +0100)]
Clarify the documentation of PersonaStore.is_writeable

Closes: bgo#652657

12 years agoBug 649296 — Folks backend files shouldn't begin with "lib"
Philip Withnall [Tue, 2 Aug 2011 22:04:58 +0000 (23:04 +0100)]
Bug 649296 — Folks backend files shouldn't begin with "lib"

Rename the backend library files from “libfolks-backend-${BACKEND_NAME}.so”
to “${BACKEND_NAME}.so”.

Closes: bgo#649296

12 years agoeds: Minor fixes to documentation comment syntax
Philip Withnall [Wed, 3 Aug 2011 20:41:38 +0000 (21:41 +0100)]
eds: Minor fixes to documentation comment syntax

12 years agoe-d-s: add test for Gender property
Raul Gutierrez Segales [Tue, 2 Aug 2011 10:47:37 +0000 (11:47 +0100)]
e-d-s: add test for Gender property

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=655745

12 years agoe-d-s: Implement read/write support for gender property
Raul Gutierrez Segales [Tue, 2 Aug 2011 10:45:34 +0000 (11:45 +0100)]
e-d-s: Implement read/write support for gender property

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=655745

12 years agoConfigure the writeable store by type_id and store id
Raul Gutierrez Segales [Thu, 21 Jul 2011 00:33:50 +0000 (01:33 +0100)]
Configure the writeable store by type_id and store id

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=654907

12 years agoAdd rules for uploading generated docs to freedesktop.org
Travis Reitter [Tue, 2 Aug 2011 17:48:53 +0000 (10:48 -0700)]
Add rules for uploading generated docs to freedesktop.org

In the future, we should copy the remaining rules from telepathy-glib's setup,
which restrict doc uploads to releases (as well as simplifying other details of
releases).

13 years agoBuild eds docs along with others.
Travis Reitter [Mon, 1 Aug 2011 22:16:26 +0000 (15:16 -0700)]
Build eds docs along with others.

13 years agoFix syntax error in valadoc for Edsf.PersonaStore.remove_persona.
Travis Reitter [Mon, 1 Aug 2011 22:31:04 +0000 (15:31 -0700)]
Fix syntax error in valadoc for Edsf.PersonaStore.remove_persona.

13 years agoFix syntax error in valadoc for Edsf.PersonaStore.prepare.
Travis Reitter [Mon, 1 Aug 2011 22:25:04 +0000 (15:25 -0700)]
Fix syntax error in valadoc for Edsf.PersonaStore.prepare.

13 years agoFix link in Edsf.Persona docs to Folks.AvatarDetails.avatar.
Travis Reitter [Mon, 1 Aug 2011 22:21:18 +0000 (15:21 -0700)]
Fix link in Edsf.Persona docs to Folks.AvatarDetails.avatar.

13 years agoBuild libsocialweb docs along with others.
Travis Reitter [Mon, 1 Aug 2011 21:43:18 +0000 (14:43 -0700)]
Build libsocialweb docs along with others.

13 years agoFix link in Swf.Persona docs to Folks.AvatarDetails.avatar.
Travis Reitter [Mon, 1 Aug 2011 21:58:25 +0000 (14:58 -0700)]
Fix link in Swf.Persona docs to Folks.AvatarDetails.avatar.

13 years agoFix link in Trf.Persona docs to Folks.AvatarDetails.avatar.
Travis Reitter [Mon, 1 Aug 2011 22:22:12 +0000 (15:22 -0700)]
Fix link in Trf.Persona docs to Folks.AvatarDetails.avatar.

13 years agoCentralize .PHONY doc targets.
Travis Reitter [Mon, 1 Aug 2011 22:01:16 +0000 (15:01 -0700)]
Centralize .PHONY doc targets.

13 years agoCentralize definition of doc dirs to distclean.
Travis Reitter [Mon, 1 Aug 2011 21:45:17 +0000 (14:45 -0700)]
Centralize definition of doc dirs to distclean.

13 years agoBump the required version of valadoc.
Travis Reitter [Mon, 1 Aug 2011 21:16:39 +0000 (14:16 -0700)]
Bump the required version of valadoc.

13 years agoActually check for the valadoc version when building docs.
Travis Reitter [Mon, 1 Aug 2011 21:16:24 +0000 (14:16 -0700)]
Actually check for the valadoc version when building docs.

13 years agoWork around valadoc parsing bug with indented comments.
Travis Reitter [Mon, 1 Aug 2011 21:09:10 +0000 (14:09 -0700)]
Work around valadoc parsing bug with indented comments.

13 years agoGive public access to properties for which there is write support
Raul Gutierrez Segales [Mon, 1 Aug 2011 18:31:37 +0000 (19:31 +0100)]
Give public access to properties for which there is write support

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=655610

13 years agoMake the Edsf.Persona class follow our coding style
Raul Gutierrez Segales [Mon, 1 Aug 2011 17:52:14 +0000 (18:52 +0100)]
Make the Edsf.Persona class follow our coding style

Besides adhering to our coding style, this also
works around a bug in Vala that allows accessing

public string foo { get; set; }

through _foo.

Works around: https://bugzilla.gnome.org/show_bug.cgi?id=655741

13 years agocore: Remove unused PotentialMatch.result_to_string() method
Philip Withnall [Fri, 29 Jul 2011 19:44:50 +0000 (20:44 +0100)]
core: Remove unused PotentialMatch.result_to_string() method

13 years agodocs: Fix up lots of minor issues in the documentation comments
Philip Withnall [Fri, 29 Jul 2011 19:06:55 +0000 (20:06 +0100)]
docs: Fix up lots of minor issues in the documentation comments

13 years agocore: Make PotentialMatch.jaro_dist() private
Philip Withnall [Fri, 29 Jul 2011 16:24:59 +0000 (17:24 +0100)]
core: Make PotentialMatch.jaro_dist() private

13 years agoinspect: Add a linking command
Philip Withnall [Wed, 27 Jul 2011 22:44:43 +0000 (23:44 +0100)]
inspect: Add a linking command

13 years agoindividual: Fix linking when personas are moved between individuals weirdly
Philip Withnall [Wed, 27 Jul 2011 22:43:14 +0000 (23:43 +0100)]
individual: Fix linking when personas are moved between individuals weirdly

It's possible (likely, even) for a set of personas to move between two
individuals during linking. Previously, bad things would happen to
persona.individual if the personas weren't correctly removed from the first
individual before being added to the second (e.g. if they were added to the
second individual before being removed from the first). This fixes that.

13 years agotests: Add a basic refcounting test for linked individuals
Philip Withnall [Tue, 26 Jul 2011 21:56:44 +0000 (22:56 +0100)]
tests: Add a basic refcounting test for linked individuals

13 years agoindividual: Add more debug output to Individual
Philip Withnall [Tue, 26 Jul 2011 21:32:51 +0000 (22:32 +0100)]
individual: Add more debug output to Individual

13 years agoaggregator: Ensure we don't remove Personas we're adding
Philip Withnall [Mon, 25 Jul 2011 21:58:15 +0000 (22:58 +0100)]
aggregator: Ensure we don't remove Personas we're adding

If a two Personas with the same UID are in the added and removed sets for a
single call to personas_changed_cb() in the individual aggregator, make sure
that we remove the old instance and replace it with the new instance, instead
of just removing both instances. This covers the case where the real instance
of a (Tpf.) Persona disappears and is immediately replaced by its cached
copy.

NOTE: This needs more testing.

13 years agoBug 652643 — Add PersonaStore cache
Philip Withnall [Thu, 16 Jun 2011 17:35:52 +0000 (18:35 +0100)]
Bug 652643 — Add PersonaStore cache

Use ObjectCache in Tpf.PersonaStore.

Closes: bgo#652643

13 years agoAdd a generic caching object to the core of folks
Philip Withnall [Thu, 16 Jun 2011 17:33:26 +0000 (18:33 +0100)]
Add a generic caching object to the core of folks

This adds the ObjectCache API.

Helps: bgo#652643

13 years agoUnset the self-contact on Tpf.PersonaStore when resetting the store
Philip Withnall [Thu, 16 Jun 2011 17:32:06 +0000 (18:32 +0100)]
Unset the self-contact on Tpf.PersonaStore when resetting the store

13 years agoBug 650414 — Need better APIs to handle image data
Philip Withnall [Mon, 13 Jun 2011 09:54:23 +0000 (10:54 +0100)]
Bug 650414 — Need better APIs to handle image data

Change AvatarDetails.avatar to have type LoadableIcon. By introducing
a libfolks-wide avatar cache, propagate this change to all the backends.

This breaks the API of AvatarDetails.

Closes: bgo#650414

13 years agoAdd missing copyright/license notices to tests.
Travis Reitter [Thu, 21 Jul 2011 14:46:38 +0000 (07:46 -0700)]
Add missing copyright/license notices to tests.