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

Script to bulk move contacts from CSV #178

Draft
wants to merge 3 commits into
base: 12-move-contact-cloud-based
Choose a base branch
from

Conversation

kennsippell
Copy link
Member

Based on #177. Work done for #12.

https://github.com/moh-kenya/config-echis-2.0/issues/2174 required me to move 381 places within the Laikipia County. I wrote a quick script and executed it using @paulpascal 's worker thread. Test notes captured here.

@kennsippell kennsippell changed the base branch from main to 12-move-contact-cloud-based May 22, 2024 00:36
@kennsippell kennsippell marked this pull request as draft May 22, 2024 00:45
const username = 'kenn_sippell_medic_user_manager';
const password = '';
const authInfo = Config.getAuthenticationInfo('laikipia.echis.go.ke');
const contactType = Config.getContactType('d_community_health_volunteer_area');
Copy link
Member

@derickl derickl May 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very neat solution especially given the re-use of components from the user management tool. We should definitely look at having an experience built out for this and make it accessible to a few user managers and learn with them.

Nice work @kennsippell

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and @paulpascal for the foundational work

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think cht-user-management is made in a way such that it is a powerful scripting library for custom user management work.

@@ -0,0 +1,457 @@
[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably need to include a csv / xlsx to json converter

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya this was just quick and dirty. i wasn't planning to check this in unless people say here that they think it's useful.

so far nobody said anything, so I'm just planning to discard this

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.

None yet

2 participants