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

When a static CSV with the same name as an Entity List in the project is attached to a form, the Entity List is always used #6425

Open dbemke opened 2 months ago

dbemke commented 2 months ago

ODK Collect version

the master version 66e9c1f10f707b803654bc57f7930b805edf2742

Android version

10, 14

Device used

Redmi 9T, Pixel 7a

Problem description

If in a project there are forms with entities and a form with external select using a CSV with a name of the dataset other forms use, in Collect the external select form shows entities instead of its proper CSV data. I don't know if it's ok for the time being but I decided to file an issue to keep steps to reproduce for the future.

Steps to reproduce the problem

  1. Create a project with entities form using trees dataset and a form with select one from file with the file name of the dataset (trees). (e.g. user one in https://staging.getodk.cloud/#/projects/101/app-users ). While uploading the select form in Central upload the CSV with hospitals (attached trees.csv). select one from file dataset name.xlsx.txt trees.csv
  2. Open select one from file dataset name form (In this form there should be hospitals not trees).

    Expected behavior

    The form should contain proper data.

seadowg commented 1 month ago

This is currently expected. My assumption was that this generally won't be a problem, but @lognaturel has brought up that some form testing workflows might run into problems here. I'm currently leaning towards closing this as not planned, and opting for improvements around how Central's Drafts work with entities (so that kind of workflow isn't required), but definitely up for discussing!