Gaia/Contacts/Data Refactor: Difference between revisions

m
→‎FAQ: links
(Shared indexedDBs for certified apps)
m (→‎FAQ: links)
Line 134: Line 134:
== FAQ ==
== FAQ ==
* What happen if a new app is installed and offers contacts?
* What happen if a new app is installed and offers contacts?
Check the Notification about datastore changes mechanism section. We need a datastore-change-* system message to be fired as soon as a new app exposing a 'contacts' datastore is installed. This will wake up the GCDS app which should get the list of 'contacts' datastores and add the ones that are not already registered.
Check the [[Gaia/Contacts/Data_Refactor#Notification_mechanism_about_datastore_changes_.28aka_DataStore_onchange_scheduler.29|Notification about datastore changes mechanism]]2 section. We need a datastore-change-* system message to be fired as soon as a new app exposing a 'contacts' datastore is installed. This will wake up the GCDS app which should get the list of 'contacts' datastores and add the ones that are not already registered.


* Where does the data live?
* Where does the data live?
In each application. This works on both sides, providers, and consumers as well.
In each application. This works on both sides, providers, and consumers as well.
Each Contact Provider will contain their specific data. The FB provider will contain FB contacts only, the Gmail provider Gmail contacts only and so on.
Each Contact Provider will contain their specific data. The FB provider will contain FB contacts only, the Gmail provider Gmail contacts only and so on.
Each Contact Consumer will contain a copy of the data resulting of the mixture of all the data owned by all Contact Providers they are allowed to access. We are aware of what this could mean in terms of disk usage, check the Shared indexedDBs for certified apps for a potential fix for this issue.
Each Contact Consumer will contain a copy of the data resulting of the mixture of all the data owned by all Contact Providers they are allowed to access. We are aware of what this could mean in terms of disk usage, check the [[Gaia/Contacts/Data_Refactor#Shared_indexedDBs_for_certified_apps|Shared indexedDBs for certified apps]] for a potential fix for this issue.


* What happen if I create a new contact?
* What happen if I create a new contact?
Confirmed users
483

edits