modilabs/formhub — comment on commit 890a67aa067e4fcfb77eab186f1b4939ff84ba45
File:  line 0
By prabhasp:

@dorey @Topol we should chat about whether you think the following is the right behavior
- you check timestamps+imei with other xmls to see if this is a potential duplicate (if (imei,start_time) pair matches, the instance is the same one, even if data=xml file is different)
- if (timestamps+imei) match, then we should discard one form and keep one. Keep the one that is more complete. If same completion rate, then keep the most recently submitted one.

(Edge-use-case: surveyor has data half filled out. His form gets backed up and submitted to formhub. Then he goes back out into field, changes some data fields, and submits a completed form. We should keep the later one. However, if the backup system happens to do a third submit, the second submit (more complete) should be taken.)