-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: 12-move-contact-cloud-based
Are you sure you want to change the base?
Conversation
bf42eee
to
2d8d8f6
Compare
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'); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 @@ | |||
[ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
ef2573a
to
cf89625
Compare
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.