Gaia/Contacts/Data Refactor/mozcontactsProposal: Difference between revisions

Jump to navigation Jump to search
(Created page with "= mozContacts Datastore as the GlobalContactsDatastore = - The idea is that instead of having an specific GlobalContactsDatastore we use the mozContacts datastore for that p...")
 
Line 1: Line 1:
= mozContacts Datastore as the GlobalContactsDatastore =  
= Introduction =  


- The idea is that instead of having an specific GlobalContactsDatastore we use the mozContacts datastore for that purpose. An entry in the mozContacts datastore could have only local data or could also have pointers to provider contacts present in the external providers datastores (Facebook, Gmail, etc.).  
This proposal advocates for collapsing two datastores (mozContacts and GCDS) into one. As a result the role of the GlobalContactsDatastore will played by the regular mozContacts datastore. An entry in the referred datastore could have local data and/or pointers to contacts present in the external providers datastores (Facebook, Gmail, etc.). We will be providing a library that will allow to resolve a mozContact to the real data it should have, as it has already been done with the MultiContact library.


The approach described here does not change so much things, it only removes a Datastore, the local Contacts datastore, role, that we've been given till now to the mozContacts datastore. In some sense, we are collapsing two datastores (mozContacts and GCDS) into one.  
To support this apprach the mozContact object will be extended with a 'sources' attribute (vcard standard) that will allow us to store the datastore provider and the id of the "linked" contacts. There can be contacts in the system that only exist in the external service and in that case all the mozContact attributes will be empty apart from the referred 'sources' attribute.


We will be providing a library that will allow to resolve a mozContact to the real data it should have, as we have been already done with the MultiContact library.
= How it works =
 
= Advantages =
172

edits

Navigation menu