akvo / akvo-flow-mobile

Akvo Flow app
GNU General Public License v3.0
18 stars 16 forks source link

Form version update tracking #1806

Closed valllllll2000 closed 3 years ago

valllllll2000 commented 3 years ago

The main change was already done in this issue https://github.com/akvo/akvo-flow-mobile/issues/1544 There are 2 pending tasks when form version is updated: 1) Delete responses to questions that no longer exist for a saved draft. Those responses will not be displayed in the form submission so they should not remain. An alternative would be to mark them as deleted. 2) Add tracking to know when the form version was updated for a draft submission

valllllll2000 commented 3 years ago
  1. Delete responses to questions that no longer exist for a saved draft. Those responses will not be displayed in the form submission so they should not remain. An alternative would be to mark them as deleted.

After running some tests:

  1. A question cannot be deleted if it has some answers already
  2. If a question was successfully deleted and the draft submission had an answer to it, when submitting to the new version, the deleted question will not be inserted in the datastore.

Given the 2 above, I have decided to not delete anything for now.