medic / cht-conf

A command-line interface for configuring Community Health Toolkit applications
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
23 stars 25 forks source link

Name and email address missing from `users.csv` when using `csv-to-docs` #595

Open binokaryg opened 8 months ago

binokaryg commented 8 months ago

For the users created via UI, we can enter the name and email address that are stored as fullname and email respectively. They are helpful to identify users and contact them if necessary. image

However, when using csv-to-docs, the name and email address are dropped from the resulting users.csv.

This is probably because the following list of fields is missing fullname and email: https://github.com/medic/cht-conf/blob/958f0b4680e8d4691c8e785b97f399b9cba6c24a/src/lib/generate-users-csv.js#L6

Shall we add them?