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

[ADD] Export survey to CSV #29

Merged
merged 4 commits into from
Jun 25, 2024
Merged

[ADD] Export survey to CSV #29

merged 4 commits into from
Jun 25, 2024

Conversation

home0712
Copy link
Collaborator

@home0712 home0712 commented Apr 22, 2024

Tasks Completed

  • added a function to export the selected surveys to csv file
  • the selection is based on the given survey ids
  • for a field having multiple values in an array such as "assignedUsers", the values are separated by semicolon.
  • for a field having map(s) such as "info", the document key-value pairs are flattened first.
  • for a field having an array of maps such as "items", it follows the same process like the field "info."
  • Since Object.keys() (and also Object related functions) returns the keys in an object in random order, so I implemented some code to fix the orders.
image image

@nkanchinadam nkanchinadam merged commit 0af91b0 into main Jun 25, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants