platform/upstream/folks.git
13 years agoe-d-s: move Set comparison method into it's own class
Raul Gutierrez Segales [Wed, 7 Sep 2011 21:59:41 +0000 (22:59 +0100)]
e-d-s: move Set comparison method into it's own class

This refactoring is so we can reuse the method with other
types.

13 years agoBug 656689 — Re-link personas on linkable properties being changed
Philip Withnall [Tue, 6 Sep 2011 21:22:52 +0000 (22:22 +0100)]
Bug 656689 — Re-link personas on linkable properties being changed

Listen for notifications of changes to the linkable properties of every
persona in the IndividualAggregator. When we receive such a notification,
relink that persona by artificially removing them from the aggregator and
immediately re-adding them.

Like many things in the IndividualAggregator, this is ugly — but it appears
to work, and I can get my head around it.

Closes: bgo#656689

13 years agocore: Fix individuals_changed_detailed mappings for unlinked individuals
Philip Withnall [Tue, 6 Sep 2011 21:20:12 +0000 (22:20 +0100)]
core: Fix individuals_changed_detailed mappings for unlinked individuals

It turns out that we can do a post-processing phase on the mappings to be
emitted by IndividualAggregator.individuals_changed_detailed and ensure that
individuals who've been unlinked are represented by a mapping from themselves
to the set of individuals replacing them, rather than a mapping from
themselves to null, and null to the set of individuals replacing them.

This probably isn't the most efficient way to fix the problem, but it works
and I can just about understand it.

Helps: bgo#656689, bgo#657282

13 years agocore: Be more thorough when removing individuals from the link map
Philip Withnall [Tue, 6 Sep 2011 21:16:44 +0000 (22:16 +0100)]
core: Be more thorough when removing individuals from the link map

Since the values of personas' linkable properties could've changed since we
added them to the link map, we have to be more thorough when removing
individuals from the map. We therefore now remove them by examining all the
values in the map, and removing every mapping to the individual we're
interested in.

Helps: bgo#656689

13 years agocore: Add more debug output and validation to the IndividualAggregator
Philip Withnall [Tue, 6 Sep 2011 21:10:20 +0000 (22:10 +0100)]
core: Add more debug output and validation to the IndividualAggregator

Everyone loves debug output, and validating that we aren't leaving stale
entries in the link map which will later cause whoever's looking into
aggregator bugs to hide in a corner and cry.

Helps: bgo#656689

13 years agocore: Clarify that Persona.linkable_properties doesn't change at runtime
Philip Withnall [Tue, 6 Sep 2011 21:04:20 +0000 (22:04 +0100)]
core: Clarify that Persona.linkable_properties doesn't change at runtime

Helps: bgo#656689

13 years agocore: Ensure we always notify of new Individuals
Philip Withnall [Tue, 6 Sep 2011 20:57:42 +0000 (21:57 +0100)]
core: Ensure we always notify of new Individuals

In the following situation, it was possible for
IndividualAggregator.individuals_changed_detailed to not emit a notification
that an individual was added:

If two personas were added by a given store in the same emission of
PersonaStore.personas_changed, the IA would create an Individual, i1, from
the first and add a mapping (null → i1) to the change set. It would then
process the second, destroying the first individual and creating a new
Individual, i2, (correctly) containing both personas. In doing so, it would
remove the mapping (null → i1) from the change set, but would incorrectly
not add a mapping (null → i2) in its place.

This situation can be extended to others where a single new Individual is
formed from multiple new personas coming from a single emission of
PersonaStore.personas_changed.

Closes: bgo#657282 (again)

13 years agoe-d-s: kill gconfd-2 after running a test
Raul Gutierrez Segales [Wed, 7 Sep 2011 14:52:27 +0000 (15:52 +0100)]
e-d-s: kill gconfd-2 after running a test

I thought we were properly cleaning up the GConf entries
generated by each test run but it turns out that sometimes
gconfd-2 exits /after/ we've supposedly nuked it's directory.
So before cleaning up GConf's files we now kill gconfd-2
to prevent it from sync-ing to disc afterwards.

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

13 years agoBump required Vala version.
Travis Reitter [Wed, 7 Sep 2011 21:23:39 +0000 (14:23 -0700)]
Bump required Vala version.

This avoids breaking the build due to valac --fatal-warnings for our
internal code.

13 years agoUpdate for translatable strings in group-details
Travis Reitter [Wed, 7 Sep 2011 21:17:53 +0000 (14:17 -0700)]
Update for translatable strings in group-details

13 years agoFix birthday calculation in eds tests.
Travis Reitter [Wed, 7 Sep 2011 18:37:12 +0000 (11:37 -0700)]
Fix birthday calculation in eds tests.

It's not nice to discriminate against people born outside of UTC.

13 years agoUpdated Slovenian translation
Matej Urbančič [Wed, 7 Sep 2011 13:36:23 +0000 (15:36 +0200)]
Updated Slovenian translation

13 years agoAdded British English translation
Bruce Cowan [Wed, 7 Sep 2011 12:47:10 +0000 (13:47 +0100)]
Added British English translation

13 years agoe-d-s: remove invalid assertion in set-roles test case
Raul Gutierrez Segales [Wed, 7 Sep 2011 11:42:31 +0000 (12:42 +0100)]
e-d-s: remove invalid assertion in set-roles test case

13 years agoe-d-s: free resources properly between tests cases on link-persona test unit
Raul Gutierrez Segales [Wed, 7 Sep 2011 11:41:09 +0000 (12:41 +0100)]
e-d-s: free resources properly between tests cases on link-persona test unit

13 years agoe-d-s: eliminate another case of possible WebServiceFieldDetails with null value
Raul Gutierrez Segales [Wed, 7 Sep 2011 11:32:08 +0000 (12:32 +0100)]
e-d-s: eliminate another case of possible WebServiceFieldDetails with null value

13 years agoe-d-s: don't instantiate WebServiceFieldDetails with null values
Raul Gutierrez Segales [Wed, 7 Sep 2011 10:55:08 +0000 (11:55 +0100)]
e-d-s: don't instantiate WebServiceFieldDetails with null values

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

13 years agolibsocialweb: update bug link in lsw for quiescence support
Raul Gutierrez Segales [Wed, 7 Sep 2011 10:23:34 +0000 (11:23 +0100)]
libsocialweb: update bug link in lsw for quiescence support

13 years agoBug 657783 — Prefer data from primary store when picking Individual values
Philip Withnall [Sat, 3 Sep 2011 17:36:24 +0000 (18:36 +0100)]
Bug 657783 — Prefer data from primary store when picking Individual values

Use a consistent high-level order over personas in an individual to choose
which one to use for the value of single-valued properties such as alias,
avatar and gender.

Closes: bgo#657783

13 years agocore: Clarify nullability of a few properties
Philip Withnall [Sat, 3 Sep 2011 17:35:24 +0000 (18:35 +0100)]
core: Clarify nullability of a few properties

AliasDetails.alias, NameDetails.nickname and NameDetails.full_name must never
be set to null. The empty string represents an unset value for these
properties.

13 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 6 Sep 2011 20:44:04 +0000 (22:44 +0200)]
Updated Slovenian translation

13 years agoAdded sl for Slovenian translation
Matej Urbančič [Tue, 6 Sep 2011 20:42:33 +0000 (22:42 +0200)]
Added sl for Slovenian translation

13 years agoAdded Slovenian translation
Matej Urbančič [Tue, 6 Sep 2011 20:42:19 +0000 (22:42 +0200)]
Added Slovenian translation

13 years agoaggregator: Fix a typo in emit_individuals_changed()
Philip Withnall [Sun, 4 Sep 2011 17:14:04 +0000 (18:14 +0100)]
aggregator: Fix a typo in emit_individuals_changed()

13 years agoaggregator: Remove a useless duplicated set
Philip Withnall [Sun, 4 Sep 2011 16:49:26 +0000 (17:49 +0100)]
aggregator: Remove a useless duplicated set

This appears to be lingering from the dark days when we used
GLib.List<Persona>.

13 years agoaggregator: Factor out code to add personas to the link map
Philip Withnall [Sun, 4 Sep 2011 14:03:15 +0000 (15:03 +0100)]
aggregator: Factor out code to add personas to the link map

This doesn't change behaviour at all (apart from debug messages), but should
make the code a bit more maintainable.

13 years agoWorkaround for Tpf.PersonaStores with no stored channels support
Raul Gutierrez Segales [Tue, 6 Sep 2011 12:05:45 +0000 (13:05 +0100)]
Workaround for Tpf.PersonaStores with no stored channels support

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

13 years agoe-d-s: add test case for settings roles
Raul Gutierrez Segales [Sun, 4 Sep 2011 14:21:44 +0000 (15:21 +0100)]
e-d-s: add test case for settings roles

13 years agoe-d-s: extend add persona test to handle Roles
Raul Gutierrez Segales [Sat, 3 Sep 2011 19:30:12 +0000 (20:30 +0100)]
e-d-s: extend add persona test to handle Roles

13 years agoe-d-s: implement support for RoleDetails
Raul Gutierrez Segales [Sat, 3 Sep 2011 17:28:09 +0000 (18:28 +0100)]
e-d-s: implement support for RoleDetails

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

13 years agobuild: tests don't use <folks/*.h> so add path to folks/
Raul Gutierrez Segales [Mon, 5 Sep 2011 22:33:08 +0000 (23:33 +0100)]
build: tests don't use <folks/*.h> so add path to folks/

13 years agolibsocialweb: make PersonaStores immediately quiescent
Raul Gutierrez Segales [Mon, 5 Sep 2011 21:25:56 +0000 (22:25 +0100)]
libsocialweb: make PersonaStores immediately quiescent

Because we don't know if a libsocialweb service has 0
contacts or is not well configured or is not authenticated, etc.;
we might end up forever for contacts to arrive and never
achieve quiescence. Until libsocialweb provides us with more
information about the status of service (is it configured and
authenticated? How many contacts should we receive? etc.) we
immediately declare it quiescent after preparing it.

13 years agotelepathy: Potentially fix is-quiescent
Philip Withnall [Mon, 5 Sep 2011 18:53:45 +0000 (19:53 +0100)]
telepathy: Potentially fix is-quiescent

See: bgo#656184

13 years agoeds: Immediately make non-browseable Edsf.PersonaStores reach quiescence
Philip Withnall [Mon, 5 Sep 2011 20:27:27 +0000 (21:27 +0100)]
eds: Immediately make non-browseable Edsf.PersonaStores reach quiescence

For example, some LDAP servers may not be browseable (i.e. they're search
only), so should reach quiescence immediately. This prevents the
IndividualAggregator waiting for ever for them to become quiescent.

Helps: bgo#656184

13 years ago[l10n] Updated German translation
Mario Blättermann [Mon, 5 Sep 2011 19:06:19 +0000 (21:06 +0200)]
[l10n] Updated German translation

13 years agoUpdated Spanish translation
dmustieles [Mon, 5 Sep 2011 11:45:53 +0000 (13:45 +0200)]
Updated Spanish translation

13 years agoUpdated galician translations
Fran Dieguez [Sun, 4 Sep 2011 22:17:10 +0000 (00:17 +0200)]
Updated galician translations

13 years agotests: Port the remaining tests to use individuals_changed_detailed
Philip Withnall [Mon, 29 Aug 2011 20:59:02 +0000 (21:59 +0100)]
tests: Port the remaining tests to use individuals_changed_detailed

Helps: bgo#657282

13 years agotests: Expand the aggregation test to check both individuals_changed signals
Philip Withnall [Mon, 29 Aug 2011 15:32:27 +0000 (16:32 +0100)]
tests: Expand the aggregation test to check both individuals_changed signals

Helps: bgo#657282

13 years agoBug 657282 — Add an IndividualAggregator.individuals_changed_detailed signal
Philip Withnall [Wed, 24 Aug 2011 21:38:16 +0000 (22:38 +0100)]
Bug 657282 — Add an IndividualAggregator.individuals_changed_detailed signal

This supersedes IndividualAggregator.individuals_changed, providing more
information about the relationships between the added and removed individuals.

Closes: bgo#657282

13 years agoBug 657789 — Don't claim uneditable eds fields as writable
Philip Withnall [Sun, 4 Sep 2011 11:58:36 +0000 (12:58 +0100)]
Bug 657789 — Don't claim uneditable eds fields as writable

Support setting the writeable-properties property of Edsf.Persona and the
always-writeable-properties property of Edsf.PersonaStore from the set of
supported fields exported by the address book.

Closes: bgo#657789

13 years agocore: Add GROUPS and INVALID to PersonaDetail
Philip Withnall [Sun, 4 Sep 2011 11:56:36 +0000 (12:56 +0100)]
core: Add GROUPS and INVALID to PersonaDetail

One is obviously necessary. The other is necessary for use as an error return
from a function in the fix for bgo#657789.

This also adds some bounds checking to PersonaStore.detail_key(), which can
now return null if the PersonaDetail wasn't recognised.

Helps: bgo#657789

13 years agoe-d-s: simplify property checking in add-persona test
Raul Gutierrez Segales [Sun, 4 Sep 2011 12:41:19 +0000 (13:41 +0100)]
e-d-s: simplify property checking in add-persona test

13 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 4 Sep 2011 10:02:48 +0000 (12:02 +0200)]
Updated Spanish translation

13 years agoAdded Spanish translation to LINGUAS
Daniel Mustieles [Sun, 4 Sep 2011 09:28:10 +0000 (11:28 +0200)]
Added Spanish translation to LINGUAS

13 years agoUpdated Spanish translation
Daniel Mustieles [Sun, 4 Sep 2011 09:27:29 +0000 (11:27 +0200)]
Updated Spanish translation

13 years agoFixed typo in string («paramter»)
Daniel Mustieles [Sun, 4 Sep 2011 09:10:10 +0000 (11:10 +0200)]
Fixed typo in string («paramter»)

13 years agoe-d-s: add birthday to list of writeable properties
Raul Gutierrez Segales [Sat, 3 Sep 2011 17:29:42 +0000 (18:29 +0100)]
e-d-s: add birthday to list of writeable properties

13 years agoUpdate NEWS file
Raul Gutierrez Segales [Sat, 3 Sep 2011 14:37:53 +0000 (15:37 +0100)]
Update NEWS file

13 years agoe-d-s: add test for setting birthday on an e-d-s Persona
Raul Gutierrez Segales [Sat, 3 Sep 2011 12:58:31 +0000 (13:58 +0100)]
e-d-s: add test for setting birthday on an e-d-s Persona

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

13 years agoe-d-s: extend add-persona test to include the BirthdayDetails interface
Raul Gutierrez Segales [Sat, 3 Sep 2011 12:49:58 +0000 (13:49 +0100)]
e-d-s: extend add-persona test to include the BirthdayDetails interface

13 years agoe-d-s: implement BirthdayDetails
Raul Gutierrez Segales [Sat, 3 Sep 2011 12:37:50 +0000 (13:37 +0100)]
e-d-s: implement BirthdayDetails

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

13 years agoDocumentation: state the birthday's DateTime objects are UTC
Raul Gutierrez Segales [Sat, 3 Sep 2011 14:13:22 +0000 (15:13 +0100)]
Documentation: state the birthday's DateTime objects are UTC

13 years agoBug 656184 — Add is-quiescent property
Philip Withnall [Fri, 2 Sep 2011 20:15:35 +0000 (21:15 +0100)]
Bug 656184 — Add is-quiescent property

This allows clients to determine when the IndividualAggregator has reached
a quiescent state — it's received and linked all of the personas it should
do at startup, and from that point onwards will only relink personas in
response to (for example), persona stores dynamically being added and removed
at runtime.

Closes: bgo#656184

13 years agoeds/tracker: Ensure the PersonaStores are removed on error
Philip Withnall [Fri, 2 Sep 2011 20:15:08 +0000 (21:15 +0100)]
eds/tracker: Ensure the PersonaStores are removed on error

13 years agokey-file: Yield when setting properties on new personas
Philip Withnall [Fri, 2 Sep 2011 18:27:33 +0000 (19:27 +0100)]
key-file: Yield when setting properties on new personas

This fixes the libsocialweb aggregation test.

Helps: bgo#657510

13 years agoeds: Ensure that property changes are signalled before .change_*() returns
Philip Withnall [Wed, 31 Aug 2011 21:21:15 +0000 (22:21 +0100)]
eds: Ensure that property changes are signalled before .change_*() returns

We can't rely on E.BookClientView.objects_modified being emitted before
E.BookClient.modify_contact() returns. In order to guarantee that the
relevant properties will be notified before Edsf.Persona.change_*() returns,
we therefore move all calls to modify_contact() into a new
Edsf.PersonaStore._commit_modified_property() method, and block returning
from that on receipt of a property change notification from e-d-s.

However, we also add a timeout to _commit_modified_property() (defaulting to
30 seconds), so that if we don't receive a property change notification in
that time period, we error out from the .change_*() method.

Helps: bgo#657510

13 years agocore: Add GroupDetails.change_groups()
Philip Withnall [Tue, 30 Aug 2011 22:24:58 +0000 (23:24 +0100)]
core: Add GroupDetails.change_groups()

This allows the groups of an implementing class to all be changed
simultaneously, asynchronously and with proper error notification.

Closes: bgo#657510

13 years agocore: Add WebServiceDetails.change_web_service_addresses()
Philip Withnall [Tue, 30 Aug 2011 19:34:32 +0000 (20:34 +0100)]
core: Add WebServiceDetails.change_web_service_addresses()

This allows the web service addresses of an implementing class to be changed
asynchronously with proper error notification.

Helps: bgo#657510

13 years agocore: Add UrlDetails.change_urls()
Philip Withnall [Tue, 30 Aug 2011 19:20:23 +0000 (20:20 +0100)]
core: Add UrlDetails.change_urls()

This allows the URLs of an implementing class to be changed asynchronously
with proper error notification.

Helps: bgo#657510

13 years agocore: Add RoleDetails.change_roles()
Philip Withnall [Tue, 30 Aug 2011 19:11:53 +0000 (20:11 +0100)]
core: Add RoleDetails.change_roles()

This allows the roles of an implementing class to be changed asynchronously
with proper error notification.

Helps: bgo#657510

13 years agocore: Add PostalAddressDetails.change_postal_addresses()
Philip Withnall [Tue, 30 Aug 2011 19:03:00 +0000 (20:03 +0100)]
core: Add PostalAddressDetails.change_postal_addresses()

This allows the postal addresses of an implementing class to be changed
asynchronously with proper error notification.

Helps: bgo#657510

13 years agocore: Add PhoneDetails.change_phone_numbers()
Philip Withnall [Tue, 30 Aug 2011 18:55:32 +0000 (19:55 +0100)]
core: Add PhoneDetails.change_phone_numbers()

This allows the phone numbers of an implementing class to be changed
asynchronously with proper error notification.

Helps: bgo#657510

13 years agocore: Add NoteDetails.change_notes()
Philip Withnall [Tue, 30 Aug 2011 18:47:26 +0000 (19:47 +0100)]
core: Add NoteDetails.change_notes()

This allows the notes of an implementing class to be changed asynchronously
with proper error notification.

Helps: bgo#657510

13 years agocore: Add NameDetails.change_*() methods
Philip Withnall [Sun, 28 Aug 2011 21:06:57 +0000 (22:06 +0100)]
core: Add NameDetails.change_*() methods

This allows the names of an implementing class to be changed asynchronously
with proper error notification.

Helps: bgo#657510

13 years agocore: Make NameDetails.structured_name nullable
Philip Withnall [Sun, 28 Aug 2011 20:41:02 +0000 (21:41 +0100)]
core: Make NameDetails.structured_name nullable

It effectively was before; now it's official.

13 years agocore: Add LocalIdDetails.change_local_ids()
Philip Withnall [Sun, 28 Aug 2011 20:26:24 +0000 (21:26 +0100)]
core: Add LocalIdDetails.change_local_ids()

This allows the local IDs of an implementing class to be changed asynchronously
with proper error notification.

Helps: bgo#657510

13 years agoeds: Fix a typo in a doc comment
Philip Withnall [Sun, 28 Aug 2011 20:19:55 +0000 (21:19 +0100)]
eds: Fix a typo in a doc comment

13 years agocore: Add GenderDetails.change_gender()
Philip Withnall [Sun, 28 Aug 2011 20:12:45 +0000 (21:12 +0100)]
core: Add GenderDetails.change_gender()

This allows the gender of an implementing class to be changed asynchronously
with proper error notification.

Helps: bgo#657510

13 years agocore: Add FavouriteDetails.change_is_favourite()
Philip Withnall [Sun, 28 Aug 2011 19:19:09 +0000 (20:19 +0100)]
core: Add FavouriteDetails.change_is_favourite()

This allows the favouriteness of an implementing class to be changed
asynchronously with proper error notification.

Helps: bgo#657510

13 years agocore: Add EmailDetails.change_email_addresses()
Philip Withnall [Sun, 28 Aug 2011 18:58:21 +0000 (19:58 +0100)]
core: Add EmailDetails.change_email_addresses()

This allows the e-mail addresses of an implementing class to be changed
asynchronously with proper error notification.

Helps: bgo#657510

13 years agocore: Add BirthdayDetails.change_birthday() and .change_calendar_event_id()
Philip Withnall [Sun, 28 Aug 2011 18:46:58 +0000 (19:46 +0100)]
core: Add BirthdayDetails.change_birthday() and .change_calendar_event_id()

These allows the birthday (and its calendar event) of an implementing class
to be changed asynchronously with proper error notification.

Helps: bgo#657510

13 years agocore: Make BirthdayDetails.birthday nullable
Philip Withnall [Sun, 28 Aug 2011 18:39:22 +0000 (19:39 +0100)]
core: Make BirthdayDetails.birthday nullable

It effectively was before; now it's official.

13 years agocore: Add AvatarDetails.change_avatar()
Philip Withnall [Sun, 28 Aug 2011 18:33:18 +0000 (19:33 +0100)]
core: Add AvatarDetails.change_avatar()

This allows the avatar of an implementing class to be changed asynchronously
with proper error notification.

Helps: bgo#657510

13 years agocore: Add ImDetails.change_im_addresses()
Philip Withnall [Sat, 27 Aug 2011 16:11:00 +0000 (17:11 +0100)]
core: Add ImDetails.change_im_addresses()

This allows the IM addresses of an implementing class to be changed
asynchronously with proper error notification.

Helps: bgo#657510

13 years agocore: Add AliasDetails.change_alias()
Philip Withnall [Sat, 27 Aug 2011 14:58:30 +0000 (15:58 +0100)]
core: Add AliasDetails.change_alias()

This allows the alias of an implementing class to be changed asynchronously
with proper error notification.

Helps: bgo#657510

13 years agocore: Add Folks.PropertyError
Philip Withnall [Sat, 27 Aug 2011 15:25:37 +0000 (16:25 +0100)]
core: Add Folks.PropertyError

Helps: bgo#657510

13 years agoe-d-s: make sure we also remove GConf's configs before running tests
Raul Gutierrez Segales [Fri, 2 Sep 2011 10:19:59 +0000 (11:19 +0100)]
e-d-s: make sure we also remove GConf's configs before running tests

Commit e0b99581 tries to remove GConf's config *after* a test
execution. But if the test fails, clean up might not happen. So
this commit adds try to remove configs *before* we start.

13 years agoIndividualAggregator: check for the writeable store was wrong
Raul Gutierrez Segales [Fri, 2 Sep 2011 09:55:24 +0000 (10:55 +0100)]
IndividualAggregator: check for the writeable store was wrong

We were checking for matching type_id to see if a PersonaStore
was the configured writeable store, instead we should do a
pointer comparison.

13 years agobuild: previous commit doesn't cover the tracker disabled case
Raul Gutierrez Segales [Thu, 1 Sep 2011 23:18:57 +0000 (00:18 +0100)]
build: previous commit doesn't cover the tracker disabled case

13 years agotracker: conditional compilation of GLib.SpawnError exception handling
Raul Gutierrez Segales [Thu, 1 Sep 2011 22:16:27 +0000 (23:16 +0100)]
tracker: conditional compilation of GLib.SpawnError exception handling

Starting Tracker 0.10.6, the GLib.SpawnError is exception is thrown
when calling Tracker.Sparql.Connection.get (). So we need to test
for the installed version and catch or not the exception, accordingly.

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

13 years agoe-d-s: more coding style cleanup in the persona store test
Raul Gutierrez Segales [Thu, 1 Sep 2011 15:40:11 +0000 (16:40 +0100)]
e-d-s: more coding style cleanup in the persona store test

13 years agoe-d-s: remove unused variable from persona store test
Raul Gutierrez Segales [Thu, 1 Sep 2011 15:35:37 +0000 (16:35 +0100)]
e-d-s: remove unused variable from persona store test

13 years agoe-d-s: make the persona stores test follow our coding style
Raul Gutierrez Segales [Thu, 1 Sep 2011 15:29:02 +0000 (16:29 +0100)]
e-d-s: make the persona stores test follow our coding style

13 years agointerface: throw some light on LocalIdDetail's cryptic comments
Raul Gutierrez Segales [Wed, 31 Aug 2011 21:48:56 +0000 (22:48 +0100)]
interface: throw some light on LocalIdDetail's cryptic comments

13 years agotracker: update linking test to use iid instead of uid
Raul Gutierrez Segales [Wed, 31 Aug 2011 21:24:18 +0000 (22:24 +0100)]
tracker: update linking test to use iid instead of uid

13 years agotracker: use iid instead of uid when linking via local ids
Raul Gutierrez Segales [Wed, 31 Aug 2011 22:03:10 +0000 (23:03 +0100)]
tracker: use iid instead of uid when linking via local ids

13 years agoe-d-s: add test to link personas from different stores
Raul Gutierrez Segales [Wed, 31 Aug 2011 18:57:07 +0000 (19:57 +0100)]
e-d-s: add test to link personas from different stores

This test checks what was fixed in:

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

13 years agoe-d-s: make address book uri a settable property in the test Backend
Raul Gutierrez Segales [Wed, 31 Aug 2011 16:01:11 +0000 (17:01 +0100)]
e-d-s: make address book uri a settable property in the test Backend

This allows us to instantiate multiple Backends, each one associated
to a it's own address book, which comes in handy for tests involving
multiple e-d-s PersonaStores.

13 years agoe-d-s: update link-personas test to use iid instead of contact_id
Raul Gutierrez Segales [Mon, 29 Aug 2011 17:27:48 +0000 (18:27 +0100)]
e-d-s: update link-personas test to use iid instead of contact_id

13 years agoe-d-s: use this.local_ids in linkable_property_to_links ()
Raul Gutierrez Segales [Mon, 29 Aug 2011 17:26:27 +0000 (18:26 +0100)]
e-d-s: use this.local_ids in linkable_property_to_links ()

Otherwise, this method can have a different  behaviour depending
on the state of the current Persona depending on whether
this.local_ids was called before or not.

13 years agoe-d-s: we should use the Persona's iid as local-ids
Raul Gutierrez Segales [Mon, 29 Aug 2011 17:25:00 +0000 (18:25 +0100)]
e-d-s: we should use the Persona's iid as local-ids

If we don't and use the contact_id as before, linking Personas
from different PersonaStores won't work.

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

13 years agoe-d-s: default trust level for PersonaStores is PARTIAL
Raul Gutierrez Segales [Mon, 29 Aug 2011 14:47:37 +0000 (15:47 +0100)]
e-d-s: default trust level for PersonaStores is PARTIAL

Without this, we can't link personas from different
(e-d-s) PersonaStores.

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

13 years agoe-d-s: make sure we remove GConf's configs between tests
Raul Gutierrez Segales [Wed, 31 Aug 2011 20:27:39 +0000 (21:27 +0100)]
e-d-s: make sure we remove GConf's configs between tests

When exercising GConf more than the usual, by creating multiple
address books or such, we might leave things in an inconsistent
state that might affect the tests that come afterwards.

13 years agotracker: Fix the match-im-addresses test
Philip Withnall [Wed, 31 Aug 2011 18:30:10 +0000 (19:30 +0100)]
tracker: Fix the match-im-addresses test

Due to the Tracker tests now running with the tracker persona store as the
writeable store, Tracker personas in the tests are now linked by their
linkeable properties (as their persona store is now fully trusted due to
being the writeable store).

This caused the two personas in the match-im-addresses test to be linked
together implicitly by the aggregator, when the test case assumed they
weren't. This broke the test.

This commit fixes the test permanently by changing the way we consider
potential matches based on IM addresses. Previously, we only indicated a
potential match if the two individuals under consideration shared a common
IM address + protocol combination. This commit changes that so that two
individuals are now considered to potentially match if they share a common
IM address *only*. Protocols are no longer considered.

This allows us to change the way the personas are set up in the
match-im-addresses test so that they're no longer implicitly linked by the
aggregator.

13 years agoe-d-s: fix indentation in tests backend
Raul Gutierrez Segales [Wed, 31 Aug 2011 14:19:53 +0000 (15:19 +0100)]
e-d-s: fix indentation in tests backend

13 years agobuild: Bump the e-d-s dependency to 3.1.5
Raul Gutierrez Segales [Wed, 31 Aug 2011 11:19:00 +0000 (12:19 +0100)]
build: Bump the e-d-s dependency to 3.1.5

We totally missed this on previous releases and
it is now causing problems for packagers.

13 years agoBug 653777 — Add a helper function to create a writable persona
Philip Withnall [Tue, 9 Aug 2011 16:23:12 +0000 (18:23 +0200)]
Bug 653777 — Add a helper function to create a writable persona

This adds IndividualAggregator.ensure_individual_property_writeable(), which
returns a persona which has the specified property writeable in the specified
individual. If no such persona exists already, a new one is created and
linked to the individual. If that all fails, an error is returned.

This allows for clients to write to properties of personas with confidence
that the updates will be written out to the backend stores. (Achieved by
calling IndividualAggregator.ensure_individual_property_writeable() first
and only writing to the property if that call succeeds.)

Closes: bgo#653777

13 years agokey-file: Allow empty Kf.Personas to be added to the persona store
Philip Withnall [Thu, 11 Aug 2011 11:57:25 +0000 (13:57 +0200)]
key-file: Allow empty Kf.Personas to be added to the persona store

This is necessary for the tests for bgo#653777. It removes the error which
would previously be thrown when trying to add a persona to Kf.PersonaStore
with no properties.

Helps: bgo#653777

13 years agocore: Add PersonaStore:always-writeable-properties
Philip Withnall [Thu, 11 Aug 2011 11:55:10 +0000 (13:55 +0200)]
core: Add PersonaStore:always-writeable-properties

This complements Persona:writeable-properties, listing the properties which
are guaranteed to always be writeable on the personas in a given persona
store. This is in contrast to Persona:writeable-properties, which may list
extra properties which are only writeable on that particular persona.

This could be the case with, for example, personas representing the user,
which might have extra writeable properties to allow the user to change their
alias or avatar.

Helps: bgo#653777