Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Creating a new version of a form in Collect by pasting another form with the same ID to forms folder #6441

Open
dbemke opened this issue Oct 4, 2024 · 2 comments

Comments

@dbemke
Copy link

dbemke commented Oct 4, 2024

ODK Collect version

the store version 2024.2.4, the master version cff7a1e

Android version

10, 14

Device used

Redmi 9T, Pixel 7a

Problem description

Is creating a new version of a form in Collect by pasting another form with the same id (of an existing form in the project) to forms folder the expected behavior?
I compared 2 scenarios for these steps - I created a project in Central, downloaded it to Collect and then I just pasted a form to forms folder in Collect:

  • if the pasted form has a different ID than other existing forms in the project, refreshing the list of blank form removes the pasted form from the list of new forms in Collect
  • if the pasted form has the same ID as one of the existing forms in the project, the pasted form appears in "Start new form” as a new version of form from Central (works well with "hide old version” setting enabled/ disabled; doesn’t disappear after refreshing the list of blank forms). Afterwards if a user tries to send the form there's information about 2 form matching the same ID.
    pastedVersion

Steps to reproduce the problem

  1. Create a project with the form on Central and download the project to Collect.
    blob_test.xml.txt
  2. Copy the second version of the form and via e.g. File Manager paste it to Collect forms folder.
    blob_test2.xml.txt
  3. Open "Star new form”.
@lognaturel
Copy link
Member

The different ID case feels expected — in match exactly mode we only show forms that come from the server. Do you see it in manual form update mode?

There does seem to be something not quite right about the same ID, different version case. I don’t think it needs action, though, because a user would really have to do something unusual to get there.

@dbemke
Copy link
Author

dbemke commented Oct 7, 2024

Do you see it in manual form update mode?

After pasting manually a "new version" of a form I go to "Download form" (in manual update mode) and download again the version of the form from the server, in "Start new form" there's the second version (not the one from the server I tried to download again).

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: not ready
Development

No branches or pull requests

3 participants