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

Child questions of grouped sections within repeating sections not ignored during CSV export #2562

Closed
kelvin-muchiri opened this issue Feb 23, 2024 · 1 comment · Fixed by #2559

Comments

@kelvin-muchiri
Copy link
Contributor

kelvin-muchiri commented Feb 23, 2024

Environmental Information

  • Onadata version: v3.18.1

Problem description

During a CSV export, if a question is a child of a grouped section that is a child of a repeating section, the question is not ignored during the export and the question is included in the CSV header columns.

Expected behavior

The question should be ignored from the CSV header columns as the question is already present as part of the indexed column headers

Steps to reproduce the behavior

  1. Make submissions to an XLSForm that has grouped section inside a repeating section. Here is an example
    multiples-group-repeat.xlsx
  2. Export the CSV data without splitting select multiples. Check the header columns will match the following name, age, grp1/grp2/browser_use[1]/grp3/grp4/grp5/year, grp1/grp2/browser_use[1]/grp3/grp4/grp5/browsers, grp1/grp2/browser_use[2]/grp3/grp4/grp5/year, grp1/grp2/browser_use[2]/grp3/grp4/grp5/browsers, grp1/grp2/browser_use/grp3/grp4/grp5/year, grp1/grp2/browser_use/grp3/grp4/grp5/browsers...
  3. The correct header columns should be name, age, grp1/grp2/browser_use[1]/grp3/grp4/grp5/year, grp1/grp2/browser_use[1]/grp3/grp4/grp5/browsers, grp1/grp2/browser_use[2]/grp3/grp4/grp5/year, grp1/grp2/browser_use[2]/grp3/grp4/grp5/browsers...
  4. Now export the CSV data with split select multiples. The out come should be similar where the non-indexed repeat question columns are included

Additional Information

Logs, related issues, weird / out of place occurrences, local settings, possible approach to solving this...

@faith-mutua
Copy link

@kelvin-muchiri the issue has been resolved on stage.ona.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants