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
719 stars 1.38k forks source link

After automatically resending failed form in one project I'm able to see the number of forms in Main Menu tabs from other project #6531

Open srujner opened 5 days ago

srujner commented 5 days ago

ODK Collect version 2024.3.1 Master version, 2024.3.2 store version

Android version Android 14

Device used Samsung Galaxy M23

Problem description I found this issue during testing PR from Central: https://github.com/getodk/central/issues/746, but it is probably not related with changes in Central, because I checked also the Test instance where this PR has not been introduced yet and I was able to reproduce the issue.

When I have 2 or more projects in Collect and there is a form in one of them, which causes an error when sending, when Collect is trying to resend this form, I suddenly see the number of forms in “Draft”, “Ready to send” and “Sent” tabs from other project. Check the video below if something is unclear.

Steps to reproduce the problem

  1. Scan the first QR code: Screenshot(206)

  2. Scan the second QR code: Screenshot(207)

  3. In the first project create some Drafts, send some forms and the most important send the: "random" form (there should be an error while sending)

  4. Move to the second project and wait for match exactly/resend from the first project

  5. You'll see the number of forms from the first project.

  6. After going into e.g. Draft tab the forms will be shown correctly

Expected behavior

Other information

https://github.com/user-attachments/assets/3d58336b-cf67-4a3d-a967-782eb24b70ee

seadowg commented 4 days ago

@srujner I'm pretty sure this will have existed in older versions looking at the code. Could you confirm v2024.2.4 for me please?

srujner commented 4 days ago

@seadowg Yep, it reproduces on v2024.2.4