e-mission / e-mission-data-collection

Repository for our own data collection
BSD 3-Clause "New" or "Revised" License
4 stars 19 forks source link

Come up with solution for resetting/restarting collection when config changes #105

Open shankari opened 8 years ago

shankari commented 8 years ago

Right now, we can only reconfigure through the UI, so I can add a plugin method to restart the data collection - albeit in a somewhat hacky way. But later, we may get configs that are pushed from the server. We need to be able to restart the collection in that case, but also we don't want to restart for every config push because nothing might have changed.

Some form of versioning might be useful, and will also solve the race with rw-documents from https://github.com/e-mission/cordova-server-sync/issues/12

We should also come up with a less hacky version of restarting data collection!?