Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Select multiples within repeating sections not flattened during CSV import #2581

Closed
kelvin-muchiri opened this issue Apr 9, 2024 · 1 comment · Fixed by #2578
Closed
Assignees
Labels
Error QA+ PR passed QA testing

Comments

@kelvin-muchiri
Copy link
Contributor

kelvin-muchiri commented Apr 9, 2024

Environmental Information

  • Onadata version: v3.18.2

Problem description

When importing a CSV that has select multiples within a repeating section split, the split select multiples are not flattened and the resulting XML file has the multiples split

Expected behavior

Split select multiples within a repeating section should be flattened during a CSV import

Steps to reproduce the behavior

  1. Create a form that has select multiples within a repeating section.
  2. Make submissions to the form
  3. Export the submissions into a CSV with the select multiples split and edit the submissions.
  4. Import the CSV edited in the previous step
  5. Export the submissions into a CSV without the select multiples split. A select multiple question within a repeating section that previously had values will now have a value of n/a
  6. Visiting the endpoint https://api.ona.io/api/v1/data/<form_id>, you will notice that the select multiple question has the values split. See screenshot below
    Screenshot from 2024-04-09 10-36-06

Additional Information

Sample form and CSV
multiples-group-repeat.xlsx
csv_import_multiple_split_group_repeat.csv

@faith-mutua
Copy link

@kelvin-muchiri this issue is now resolved on stage.ona.io

@faith-mutua faith-mutua added the QA+ PR passed QA testing label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error QA+ PR passed QA testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants