akvo / akvo-flow-mobile

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

Answers not being saved and thus not being able to submit #1787

Closed janagombitova closed 3 years ago

janagombitova commented 3 years ago

Reported via support: https://akvoo.reamaze.com/admin/conversations/form-does-not-save-and-information-is-erased

screenshot of case 1_form does not send and is not saved

What has happened according to the user:

  1. Have completed entire surveys
  2. Arrived at the "submit" section (see screenshot attached)
  3. Selected "submit," and then receive the message explaining. "Error submitting form, please try again." (see screenshot attached)
  4. Selects the back button in order to try to re-enter the survey and send, and then realizes the has not been saved at all.

I checked Sentry and there are no errors there. I have contacted Eric for more information. For now we wait.

valllllll2000 commented 3 years ago

Here is a list of problematic devices:

Steps: I have found error stacktraces on which say: "survey instance [id] not found" for 2 of the devices on firebase. When we open a new datapoint, we create an empty surveyinstance and datapoint and then proceed to the screen called FormActivity. In the datapoint list view we have logic which retrieves datapoints and there's also logic which cleans up empty datapoints so they are not shown.

Hipothesis: There must be something happening where for some reason that survey instance gets deleted. I am not sure yet how it can happen but there seems to be a race condition where the datapoint and survey instance are considered as "empty" and end up being deleted before user has the chance to add any answers.

Next step: Copy the partner's form to uat1 to test a submission.

valllllll2000 commented 3 years ago

Steps: