The Admin > Import & Export > People page needs to be improved. Firstly one request is made per uploaded person which is inefficient. Secondly the requests are made in parallel which is guaranteed to fail with a large enough import. Thirdly it's implementing the logic that's already implemented in the /api/v1/people api. Finally it would be better to be in medic-conf (https://github.com/medic/medic-conf/issues/193 maybe related).
@abbyad Can you help work out if this feature is needed in the UI?
I think we ultimately want a UI version to import people, but think that the way it is now is not ideal anyhow. The export is in CSV, and the import in JSON. That means that anyone wanting to import or bulk edit people can't just do an export, modify the file or add new rows, and upload the same file. Until we get that functionality I think it is fine to move this to medic-conf. We can then design an UI import that would be more functional.
cc @MaxDiz
Ok. I propose we leave the UI as is for now, remove this issue from 3.8.0, and schedule a broader issue for redesigning the UX altogether.
@amandacilek could use your recommendations on how to pursue a more comprehensive upgrade to this feature
My best recommendation is to ask a lot of questions :). Find out who the primary users are, figure out their needs, and then plan a solution accordingly.
Just encountered a situation where this would be very helpful for a partner who wants to bulk upload and update contacts. I have directed them to csv-to-docs.
There's another problem with this page. The export references that it would come down as json but the file is a CSV. The expected upload file is a json file.
Most helpful comment
Ok. I propose we leave the UI as is for now, remove this issue from 3.8.0, and schedule a broader issue for redesigning the UX altogether.