getodk / collect

ODK Collect is an Android app for filling out forms. It's been used to collect billions of data points in challenging environments around the world. Contribute and make the world a better place! ✨📋✨
https://docs.getodk.org/collect-intro
Other
718 stars 1.38k forks source link

Avoid sending duplicated submissions to a server #3517

Open grzesiek2010 opened 4 years ago

grzesiek2010 commented 4 years ago

Software and hardware versions

Collect v1.25 and older versions

Problem description

In Collect a user can send the same filled form to a server multiple times. They just need to go to Send Finalized Form -> Three dots -> Change view -> Show Sent and Unsent Forms.

Of course it could be a responsibility of a server as well but neither Aggregate nor Central has such an option, moreover in case of Google Sheets it would be even not possible to do on a server side. So I think we could handle it in Collect.

I can think of two solutions:

  1. The easiest way would be to add and option in Admin settings to hide the Change view -> Show Sent and Unsent Forms option.
  2. Another (more sophisticated) option would be having a new column in instances.db to remember to which server a form has been sent. Then we could allow sending the same filled form multiple times but only to different servers.

Other information

I decided to report this issue because I have noticed some topic on the forum like: https://forum.opendatakit.org/t/duplicates-in-odk-collect/6137/4

my guess is that it's nor necessarily our bug but someone just sends the same form multiple times.

getodk-bot commented 4 years ago

Hello @grzesiek2010, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 15 days.

You can reclaim this issue or claim any other issue by commenting @opendatakit-bot claim on that issue.

Thanks for your contributions, and hope to see you again soon!