platform/upstream/folks.git
13 years agoinspect: Don't print details of unprepared persona stores
Philip Withnall [Wed, 13 Jul 2011 22:01:55 +0000 (23:01 +0100)]
inspect: Don't print details of unprepared persona stores

We're not supposed to, and they're not very useful anyway. Instead, we now
print a message saying that the persona store is not prepared.

13 years agoeds: Fix linker warnings for the e-d-s backend tests
Philip Withnall [Wed, 13 Jul 2011 18:30:01 +0000 (19:30 +0100)]
eds: Fix linker warnings for the e-d-s backend tests

13 years agoeds: Fix a variable's visibility in the e-d-s Backend
Philip Withnall [Wed, 13 Jul 2011 18:29:46 +0000 (19:29 +0100)]
eds: Fix a variable's visibility in the e-d-s Backend

This also takes the opportunity to s/addressbook/address book/ an environment
variable, since the official GNOME terminology is “address book” rather than
“addressbook”.

13 years agoeds: Tidy up the e-d-s Backend.unprepare() method
Philip Withnall [Wed, 13 Jul 2011 18:28:38 +0000 (19:28 +0100)]
eds: Tidy up the e-d-s Backend.unprepare() method

This makes sure we disconnect from all the right signals, and abstracts
adding and removing address books out into a single pair of methods.

13 years agoUpdate NEWS for bgo#654509.
Travis Reitter [Wed, 13 Jul 2011 00:01:36 +0000 (17:01 -0700)]
Update NEWS for bgo#654509.

13 years agoBump required version of Vala (needed for EDS).
Travis Reitter [Wed, 13 Jul 2011 00:00:08 +0000 (17:00 -0700)]
Bump required version of Vala (needed for EDS).

Closes: bgo#654509 - Folks master not building

13 years agoSet the backend name for the EDS backend.
Travis Reitter [Tue, 12 Jul 2011 21:59:08 +0000 (14:59 -0700)]
Set the backend name for the EDS backend.

13 years agoTidy up EDS CLEANFILES.
Travis Reitter [Tue, 12 Jul 2011 21:56:09 +0000 (14:56 -0700)]
Tidy up EDS CLEANFILES.

13 years agoRe-locate the EDS headers.
Travis Reitter [Tue, 12 Jul 2011 21:50:26 +0000 (14:50 -0700)]
Re-locate the EDS headers.

This is related to bgo#649790 - Vala uses the wrong includes

13 years agoeds: Add source list change notification to the eds backend
Philip Withnall [Tue, 12 Jul 2011 19:23:47 +0000 (20:23 +0100)]
eds: Add source list change notification to the eds backend

This means that Edsf.PersonaStores can come and go at run time.

This also adds a little bit of debug output to the eds Backend.

13 years agoeds: Ensure that errors are thrown by Edsf.PersonaStore.prepare() properly
Philip Withnall [Tue, 12 Jul 2011 19:23:22 +0000 (20:23 +0100)]
eds: Ensure that errors are thrown by Edsf.PersonaStore.prepare() properly

13 years agoAdd an EDS backend
Raul Gutierrez Segales [Tue, 12 Jul 2011 18:00:00 +0000 (19:00 +0100)]
Add an EDS backend

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

13 years agoFix the valadoc string for FieldDetails.value.
Travis Reitter [Thu, 7 Jul 2011 18:12:43 +0000 (11:12 -0700)]
Fix the valadoc string for FieldDetails.value.

13 years agoBug 653746 — mismatch between hash and equals in Note
Philip Withnall [Thu, 30 Jun 2011 17:55:41 +0000 (18:55 +0100)]
Bug 653746 — mismatch between hash and equals in Note

Ensure that Note instances compare equal iff their UIDs are equal (as well as
iff their contents are equal).

Closes: bgo#653746

13 years agoRe-add a dependency on dbus-glib for the Telepathy test library
Philip Withnall [Sat, 2 Jul 2011 19:43:21 +0000 (20:43 +0100)]
Re-add a dependency on dbus-glib for the Telepathy test library

Files in tests/lib/telepathy/contactlist/ still use dbus-glib, and have to
because they're also using telepathy-glib.

13 years agoFix a typo in the IndividualAggregator.individuals_changed docs.
Travis Reitter [Thu, 30 Jun 2011 23:03:24 +0000 (16:03 -0700)]
Fix a typo in the IndividualAggregator.individuals_changed docs.

13 years agoMake valadoc a hard dependency when using --enable-docs
Travis Reitter [Fri, 24 Jun 2011 17:04:54 +0000 (10:04 -0700)]
Make valadoc a hard dependency when using --enable-docs

Closes: bgo#653325 — Build system does not complain if trying to build docs
without vala-doc installed

13 years agoBug 652449 — Folks.Individual's property getters should be read only
Philip Withnall [Mon, 13 Jun 2011 13:25:20 +0000 (14:25 +0100)]
Bug 652449 — Folks.Individual's property getters should be read only

Make the getters of container types in Folks.Individual return read-only
views of the containers.

Closes: bgo#652449

13 years agoCut meaningless 'Tests' output from configure.
Travis Reitter [Fri, 24 Jun 2011 16:27:03 +0000 (09:27 -0700)]
Cut meaningless 'Tests' output from configure.

13 years agoFix the configure output for docs.
Travis Reitter [Fri, 24 Jun 2011 15:21:54 +0000 (08:21 -0700)]
Fix the configure output for docs.

Based upon a couple issues raised in bgo#653325

13 years agoBug 652660 — Make Individual.id more stable and well-defined
Philip Withnall [Wed, 15 Jun 2011 17:44:18 +0000 (18:44 +0100)]
Bug 652660 — Make Individual.id more stable and well-defined

13 years agoDon't make the folks-telepathy docs depend directly upon dbus-glib.
Travis Reitter [Wed, 22 Jun 2011 23:05:58 +0000 (16:05 -0700)]
Don't make the folks-telepathy docs depend directly upon dbus-glib.

Closes: bgo#629716 - Migrate Folks to GDBus

13 years agoDon't make the Libsocialweb backend depend directly upon dbus-glib.
Travis Reitter [Wed, 22 Jun 2011 22:46:28 +0000 (15:46 -0700)]
Don't make the Libsocialweb backend depend directly upon dbus-glib.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoDon't make the Telepathy tests depend directly upon dbus-glib.
Travis Reitter [Wed, 22 Jun 2011 22:38:16 +0000 (15:38 -0700)]
Don't make the Telepathy tests depend directly upon dbus-glib.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoHandle both the dbus-glib and GDBus missing logger errors.
Travis Reitter [Wed, 22 Jun 2011 20:41:15 +0000 (13:41 -0700)]
Handle both the dbus-glib and GDBus missing logger errors.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoUpdate Tp test backend suppression to match GDBus behavior.
Travis Reitter [Wed, 22 Jun 2011 20:35:44 +0000 (13:35 -0700)]
Update Tp test backend suppression to match GDBus behavior.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoCut unnecessary log message suppressions in the Aggregation test.
Travis Reitter [Tue, 21 Jun 2011 23:31:18 +0000 (16:31 -0700)]
Cut unnecessary log message suppressions in the Aggregation test.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoProperly disconnect the logger::invalidated handler.
Travis Reitter [Tue, 21 Jun 2011 23:14:04 +0000 (16:14 -0700)]
Properly disconnect the logger::invalidated handler.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoPort Tpf.Logger to GDBus.
Travis Reitter [Tue, 7 Jun 2011 23:16:47 +0000 (16:16 -0700)]
Port Tpf.Logger to GDBus.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoFactor out Tpf.Logger.prepare() from its constructor.
Travis Reitter [Tue, 7 Jun 2011 23:15:31 +0000 (16:15 -0700)]
Factor out Tpf.Logger.prepare() from its constructor.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoUse the GLib definition of Error instead of DBus.Error.
Travis Reitter [Wed, 8 Jun 2011 15:39:28 +0000 (08:39 -0700)]
Use the GLib definition of Error instead of DBus.Error.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoUse the GLib definition for Object.
Travis Reitter [Tue, 7 Jun 2011 18:23:43 +0000 (11:23 -0700)]
Use the GLib definition for Object.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoUse the GLib definition for ObjectPath.
Travis Reitter [Tue, 7 Jun 2011 18:21:53 +0000 (11:21 -0700)]
Use the GLib definition for ObjectPath.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoDon't build dbus-glib into Telepathy backend.
Travis Reitter [Tue, 7 Jun 2011 18:16:21 +0000 (11:16 -0700)]
Don't build dbus-glib into Telepathy backend.

Helps: bgo#629716 - Migrate Folks to GDBus

13 years agoBug 652472 — Handle failure in getting the logger service better
Philip Withnall [Mon, 13 Jun 2011 16:20:34 +0000 (17:20 +0100)]
Bug 652472 — Handle failure in getting the logger service better

If we fail to get the logger from the bus, get_object() may return NULL. If
we check for this, we don't then try and connect a signal to a NULL object
instance and emit criticals.

Closes: bgo#652472

13 years agoFix the link within the PresenceDetails.presence_status docs
Travis Reitter [Wed, 22 Jun 2011 23:39:35 +0000 (16:39 -0700)]
Fix the link within the PresenceDetails.presence_status docs

13 years agoBug 648071 — Add support for presence status from Telepathy
Philip Withnall [Tue, 14 Jun 2011 14:21:29 +0000 (15:21 +0100)]
Bug 648071 — Add support for presence status from Telepathy

Add a presence_status property to PresenceDetails to expose the detailed
presence status string that Telepathy exposes.

Closes: bgo#648071

13 years agoDon't crash if a provided TpContact ID is NULL.
Travis Reitter [Tue, 21 Jun 2011 22:08:45 +0000 (15:08 -0700)]
Don't crash if a provided TpContact ID is NULL.

13 years agoDon't add null Personas in personas-changed signal arguments.
Travis Reitter [Tue, 21 Jun 2011 21:43:06 +0000 (14:43 -0700)]
Don't add null Personas in personas-changed signal arguments.

13 years agoNote closing of bgo#652434 — Add ability to run any tests through gdb
Travis Reitter [Tue, 21 Jun 2011 21:08:47 +0000 (14:08 -0700)]
Note closing of bgo#652434 — Add ability to run any tests through gdb

Closes: bgo#652434

13 years agoAdd ability to run any of our tests through gdb
Travis Reitter [Fri, 10 Jun 2011 17:39:27 +0000 (10:39 -0700)]
Add ability to run any of our tests through gdb

Run a test through gdb with:

    make -C tests/<dir> <test name>.gdb

13 years agoCut redundant EXTRA_DIST entry.
Travis Reitter [Fri, 17 Jun 2011 15:06:22 +0000 (16:06 +0100)]
Cut redundant EXTRA_DIST entry.

13 years agoMore-cleanly define gir and vapi files.
Travis Reitter [Fri, 17 Jun 2011 15:05:38 +0000 (16:05 +0100)]
More-cleanly define gir and vapi files.

13 years agoAdd Make rule for generating tracker-test.vapi.
Travis Reitter [Fri, 17 Jun 2011 14:15:44 +0000 (15:15 +0100)]
Add Make rule for generating tracker-test.vapi.

After a maintainer-clean, Make doesn't know how to generate this file otherwise.

13 years agoDist but don't include the tracker-test vapi files.
Travis Reitter [Fri, 17 Jun 2011 12:58:47 +0000 (13:58 +0100)]
Dist but don't include the tracker-test vapi files.

13 years agoBug 652463 — Tidy up CLEANFILES
Philip Withnall [Mon, 13 Jun 2011 14:20:55 +0000 (15:20 +0100)]
Bug 652463 — Tidy up CLEANFILES

Tidy up pkg-config and configure-generated files in CLEANFILES and
DISTCLEANFILES.

Closes: bgo#652463

13 years agoBug 646244 — Incomplete logic to handle attribute updates in Folks.Individual
Philip Withnall [Mon, 13 Jun 2011 11:09:34 +0000 (12:09 +0100)]
Bug 646244 — Incomplete logic to handle attribute updates in Folks.Individual

Tidy up some of the update methods in Folks.Individual to handle null values
a little better.

Closes: bgo#646244

13 years agoDon't delete tp-test-contactlist.deps when maintainer-cleaning.
Travis Reitter [Thu, 9 Jun 2011 22:29:53 +0000 (15:29 -0700)]
Don't delete tp-test-contactlist.deps when maintainer-cleaning.

This fixes a bug introduced by b983fee7

13 years agoHandle ownership of TpContact.connection automatically.
Travis Reitter [Thu, 9 Jun 2011 15:43:54 +0000 (08:43 -0700)]
Handle ownership of TpContact.connection automatically.

It recently changed in telepathy-glib and/or Vala 0.14.x finally detected that
the TpContact.connection property returns an owned TpConnection (making our use
of "unowned Connection connection = contact.connection" invalid).

13 years agoDist the tp-test-contactlist.deps file
Emilio Pozuelo Monfort [Wed, 8 Jun 2011 11:17:43 +0000 (12:17 +0100)]
Dist the tp-test-contactlist.deps file

It was missing from tarballs, which causes folks to fail to build
in some circumstances.

13 years agoMove tracker's test image to a common location
Raul Gutierrez Segales [Sun, 5 Jun 2011 10:49:20 +0000 (11:49 +0100)]
Move tracker's test image to a common location

Moving this to tests/data so it can be shared by other
backends.

13 years agoPlay nicely with new API in Vala 0.14
Raul Gutierrez Segales [Tue, 24 May 2011 17:56:12 +0000 (18:56 +0100)]
Play nicely with new API in Vala 0.14

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

13 years agolibsocialweb: Swf.Persona stores SocialWebClient.Contact
Alban Crequy [Wed, 11 May 2011 13:19:46 +0000 (14:19 +0100)]
libsocialweb: Swf.Persona stores SocialWebClient.Contact

Closes: bgo#649925 - expose SocialWebClient.Contact in Swf.Persona

13 years agoPost-release bump.
Travis Reitter [Wed, 1 Jun 2011 18:07:14 +0000 (11:07 -0700)]
Post-release bump.

13 years agoRelease version 0.5.2. FOLKS_0_5_2
Travis Reitter [Wed, 1 Jun 2011 16:14:09 +0000 (09:14 -0700)]
Release version 0.5.2.

13 years agoNote fix for bgo#650268 build failure in NEWS.
Travis Reitter [Wed, 1 Jun 2011 16:06:48 +0000 (09:06 -0700)]
Note fix for bgo#650268 build failure in NEWS.

13 years agoFix location of NEWS entry for bgo#650067 fix.
Travis Reitter [Wed, 1 Jun 2011 16:05:22 +0000 (09:05 -0700)]
Fix location of NEWS entry for bgo#650067 fix.

13 years agoDefine the proper autoconf constant when enabling the libsocialweb backend.
Travis Reitter [Wed, 1 Jun 2011 16:01:57 +0000 (09:01 -0700)]
Define the proper autoconf constant when enabling the libsocialweb backend.

13 years agoDon't re-build the vapi files unless we've been configured with Vala.
Travis Reitter [Tue, 31 May 2011 23:21:33 +0000 (16:21 -0700)]
Don't re-build the vapi files unless we've been configured with Vala.

13 years agoDon't require [lib]valadoc to build docs.
Travis Reitter [Tue, 31 May 2011 22:28:38 +0000 (15:28 -0700)]
Don't require [lib]valadoc to build docs.

13 years agoOnly check for libsocialweb Vala deps if Vala is enabled.
Travis Reitter [Tue, 31 May 2011 22:04:48 +0000 (15:04 -0700)]
Only check for libsocialweb Vala deps if Vala is enabled.

13 years agoCheck for folks-telepathy.h in the proper dir when building docs.
Travis Reitter [Tue, 31 May 2011 23:40:53 +0000 (16:40 -0700)]
Check for folks-telepathy.h in the proper dir when building docs.

13 years ago[tracker] Deal with null Avatars being set on a Trf.Persona
Raul Gutierrez Segales [Tue, 24 May 2011 17:11:49 +0000 (18:11 +0100)]
[tracker] Deal with null Avatars being set on a Trf.Persona

Fixes: bgo#650067 - Tracker backend warns when setting a NULL
avatar (ie, unsetting the avatar)

13 years agoPost-release version bump.
Travis Reitter [Fri, 13 May 2011 19:16:26 +0000 (12:16 -0700)]
Post-release version bump.

13 years agoRelease Folks 0.5.1. FOLKS_0_5_1
Travis Reitter [Thu, 12 May 2011 22:51:20 +0000 (15:51 -0700)]
Release Folks 0.5.1.

13 years agoGenerate backend library headers in folks/ subdirs.
Travis Reitter [Fri, 13 May 2011 16:35:13 +0000 (09:35 -0700)]
Generate backend library headers in folks/ subdirs.

This is to allow in-tree building, since we changed the includedir, which
makes the vapi files include headers as <folks/header.h>. Outputting our
headers in a folks/ subdir works around this issue by making the
backend/*/lib dir match the expected includedir layout.

13 years agoDon't depend upon removed LinkedHashSet stamp file.
Travis Reitter [Fri, 13 May 2011 05:20:40 +0000 (22:20 -0700)]
Don't depend upon removed LinkedHashSet stamp file.

13 years agoStrip tab characters from valadocs to unbreak doc building.
Travis Reitter [Thu, 12 May 2011 23:36:22 +0000 (16:36 -0700)]
Strip tab characters from valadocs to unbreak doc building.

13 years agoProperly distribute the typelib file.
Travis Reitter [Fri, 13 May 2011 05:59:17 +0000 (22:59 -0700)]
Properly distribute the typelib file.

13 years agoDistribute Folks-*.gir and Folks-*.typelib
Travis Reitter [Fri, 13 May 2011 05:55:49 +0000 (22:55 -0700)]
Distribute Folks-*.gir and Folks-*.typelib

13 years agoAllow generated source files to exist after distcleancheck.
Travis Reitter [Fri, 13 May 2011 05:54:35 +0000 (22:54 -0700)]
Allow generated source files to exist after distcleancheck.

It turns out to be nearly impossible to satisfy a standard distcleancheck
with Vala and its automake support. This is specifically a work-around
because there doesn't seem to be any obvious way to satisfy these
requirements:

  * the release tarball can be built without gobject-introspection, valac,
    or vapigen

  * it's safe to run "make distclean" in the release tarball without
    suddenly requiring the tools listed above (due to generated files
    being removed)

  * "make distcheck" doesn't fail its "distcleancheck" phase due to the
    following files remaining after distclean:

    - tests/lib/telepathy/contactlist/tp-test-contactlist.gir
    - tests/lib/telepathy/contactlist/tp-test-contactlist.vapi
    - backends/telepathy/lib/tp-lowlevel.gir
    - backends/telepathy/lib/tp-lowlevel.vapi

We've hit this last issue multiple times, and no fix seems to stick. So
stripping out this check seems to be the best option (until we can
remove the Vala/GObject-Introspection-free build requirement, when
they've stabilized more and we don't depend upon the latest versions which
may not be in all the major distros).

13 years agoAllow the types argument for PostalAddress() to be null.
Travis Reitter [Thu, 12 May 2011 21:00:02 +0000 (14:00 -0700)]
Allow the types argument for PostalAddress() to be null.

13 years agoBug 649088 — Combining contacts doesn't work with german Umlauts
Philip Withnall [Sun, 1 May 2011 21:12:47 +0000 (22:12 +0100)]
Bug 649088 — Combining contacts doesn't work with german Umlauts

Fix normalisation of Jabber IDs to use the correct Unicode normalisation mode
as described in RFC 3920, §A.4. Closes: bgo#649088

13 years agoEnsure includes are done with <folks/*.h>
Alexander Larsson [Tue, 10 May 2011 11:11:05 +0000 (13:11 +0200)]
Ensure includes are done with <folks/*.h>

This changes all pc files to not include -I$incdir/folks and fixes
the vapi files to add the folks/ part to the includes.

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

13 years agoAdd a “debug” command to folks-inspect to print status information
Philip Withnall [Tue, 26 Apr 2011 22:56:41 +0000 (23:56 +0100)]
Add a “debug” command to folks-inspect to print status information

When executed, it simply calls Folks.Debug.emit_print_status().

Closes: bgo#648533

13 years agoAllow printing out status information at runtime
Philip Withnall [Sat, 23 Apr 2011 00:14:20 +0000 (01:14 +0100)]
Allow printing out status information at runtime

When Folks.Debug.print-status is emitted, BackendStore, IndividualAggregator
and Tpf.PersonaStore will now print out their status, including a list
of all the loaded backends, persona stores, aggregated individuals and their
personas.

Folks.Debug.print-status could be emitted as a result of the client process
receiving SIGUSR2, for example.

Helps: bgo#648533

13 years agoAdd debug printing and formatting methods to Debug
Philip Withnall [Sat, 23 Apr 2011 23:22:19 +0000 (00:22 +0100)]
Add debug printing and formatting methods to Debug

This includes indentation and output colouring support.

Helps: bgo#648533

13 years agoAllow the singleton Debug instance to be retrieved without setting its flags
Philip Withnall [Sat, 23 Apr 2011 00:10:50 +0000 (01:10 +0100)]
Allow the singleton Debug instance to be retrieved without setting its flags

Helps: bgo#648533

13 years agoAllow enabling/disabling output of debug messages at runtime
Philip Withnall [Fri, 22 Apr 2011 23:58:54 +0000 (00:58 +0100)]
Allow enabling/disabling output of debug messages at runtime

Helps: bgo#648533

13 years agoMake Debug public and restrict it to being a singleton
Philip Withnall [Mon, 25 Apr 2011 20:07:38 +0000 (21:07 +0100)]
Make Debug public and restrict it to being a singleton

Also add some API documentation to its newly-public members and make it
thread-safe.

13 years agoBug 648767 — Return read-only views of Sets and Maps where possible
Philip Withnall [Wed, 27 Apr 2011 14:49:33 +0000 (15:49 +0100)]
Bug 648767 — Return read-only views of Sets and Maps where possible

This prevents clients from messing up libfolks' state by modifying Sets or
Maps returned to them by libfolks when those Sets or Maps are just references
to the ones used internally by libfolks, as is the case with many
properties.

Closes: bgo#648767

13 years agoTidy up signal disconnections in IndividualAggregator
Philip Withnall [Fri, 22 Apr 2011 21:47:49 +0000 (22:47 +0100)]
Tidy up signal disconnections in IndividualAggregator

Closes: bgo#645186

13 years agoTidy up channel signal disconnections in Tpf.PersonaStore
Philip Withnall [Fri, 22 Apr 2011 21:36:13 +0000 (22:36 +0100)]
Tidy up channel signal disconnections in Tpf.PersonaStore

Helps: bgo#645186

13 years agoAdd a missing signal disconnection to Tr.Backend
Philip Withnall [Fri, 22 Apr 2011 21:13:42 +0000 (22:13 +0100)]
Add a missing signal disconnection to Tr.Backend

Helps: bgo#645186

13 years agoAdd a missing signal disconnection to Tp.Backend
Philip Withnall [Fri, 22 Apr 2011 21:02:59 +0000 (22:02 +0100)]
Add a missing signal disconnection to Tp.Backend

Helps: bgo#645186

13 years agoAdd a missing signal disconnection to Kf.Backend
Philip Withnall [Fri, 22 Apr 2011 21:01:38 +0000 (22:01 +0100)]
Add a missing signal disconnection to Kf.Backend

Helps: bgo#645186

13 years agoFix a potential crash in Swf.PersonaStore on destruction before preparation
Philip Withnall [Fri, 22 Apr 2011 20:59:14 +0000 (21:59 +0100)]
Fix a potential crash in Swf.PersonaStore on destruction before preparation

If a Swf.PersonaStore is finalised before .prepare() is called, its
_contact_view member will be null, so it shouldn't try and disconnect from
signals from it.

13 years agoAdd GObject Introspection Support
Maxim Ermilov [Thu, 21 Apr 2011 23:06:51 +0000 (03:06 +0400)]
Add GObject Introspection Support

Closes: bgo#648161

13 years agoAdd a NEWS entry for fixing bgo#640092.
Travis Reitter [Tue, 26 Apr 2011 16:59:29 +0000 (09:59 -0700)]
Add a NEWS entry for fixing bgo#640092.

13 years agoChange PostalAddress.types to be a Set<string>
Philip Withnall [Wed, 20 Apr 2011 10:22:18 +0000 (11:22 +0100)]
Change PostalAddress.types to be a Set<string>

Helps: bgo#640092

13 years agoChange PotentialMatch.known_email_aliases to be of type Set<string>
Philip Withnall [Wed, 20 Apr 2011 00:41:57 +0000 (01:41 +0100)]
Change PotentialMatch.known_email_aliases to be of type Set<string>

Helps: bgo#640092

13 years agoChange RoleDetails.roles to be of type Set<Role>
Philip Withnall [Wed, 20 Apr 2011 00:41:20 +0000 (01:41 +0100)]
Change RoleDetails.roles to be of type Set<Role>

Helps: bgo#640092

13 years agoChange NoteDetails.notes to be of type Set<Note>
Philip Withnall [Wed, 20 Apr 2011 00:40:50 +0000 (01:40 +0100)]
Change NoteDetails.notes to be of type Set<Note>

Helps: bgo#640092

13 years agoChange LocalIdDetails.local_ids to be of type Set<string>
Philip Withnall [Wed, 20 Apr 2011 00:40:10 +0000 (01:40 +0100)]
Change LocalIdDetails.local_ids to be of type Set<string>

Helps: bgo#640092

13 years agoChange PersonaStore.personas to be a Map<string, Persona>
Philip Withnall [Wed, 20 Apr 2011 00:31:54 +0000 (01:31 +0100)]
Change PersonaStore.personas to be a Map<string, Persona>

This helps in our quest to get rid of HashTable.

Helps: bgo#640092

13 years agoChange IndividualAggregator.individuals to be a Map<string, Individual>
Philip Withnall [Wed, 20 Apr 2011 00:14:05 +0000 (01:14 +0100)]
Change IndividualAggregator.individuals to be a Map<string, Individual>

This helps in our quest to get rid of HashTable.

Helps: bgo#640092

13 years agoChange IndividualAggregator.get_[all_]potential_matches() to return a Map
Philip Withnall [Wed, 20 Apr 2011 00:02:54 +0000 (01:02 +0100)]
Change IndividualAggregator.get_[all_]potential_matches() to return a Map

We don't want to expose the fact that we're using a *hash* map internally.

Helps: bgo#640092

13 years agoChange IndividualAggregator.link_personas() to take a Set<Persona>
Philip Withnall [Tue, 19 Apr 2011 23:58:00 +0000 (00:58 +0100)]
Change IndividualAggregator.link_personas() to take a Set<Persona>

Helps: bgo#640092

13 years agoPort IndividualAggregator.individuals_changed to use Set<Individual>
Philip Withnall [Thu, 24 Mar 2011 16:40:07 +0000 (16:40 +0000)]
Port IndividualAggregator.individuals_changed to use Set<Individual>

Helps: bgo#640092

13 years agoFix a race condition in Tpf.PersonaStore
Philip Withnall [Thu, 24 Mar 2011 16:11:09 +0000 (16:11 +0000)]
Fix a race condition in Tpf.PersonaStore

The /IndividualRetrieval/aggregator:add test can execute multiple calls to
Tpf.PersonaStore.add_persona_from_details() with the same contact ID
simultaneously. Since the change to use sets, the fact that only one
of the adds is succeeding is no longer hidden by our use of GLib.List.

This commit fixes the error handling in
Tpf.PersonaStore.add_persona_from_details() to be more resilient to the
contact already existing.

Helps: bgo#640092