Closed aleksa-krolls closed 3 years ago
@chaiwa-berian Can you please go ahead and implement this clean function on L44: https://github.com/OpenFn/grassroot-soccer/blob/master/jobs/2.a.upsertInterventions.js#L44
Then please re-run this on OpenFn.org to make sure it works: https://www.openfn.org/projects/pd3yk4/runs/r7xrk7rr
Background
See issue #1 for original specs.
Request
Add function to clean the state data value by (1) replacing
_
with spaces and (2) capitalizing the first character of every word. For example:not_school_related
==>Not School Related
excellent
==>Excellent
Start with these 2 jobs and we will copy this data cleaning function and apply throughout other jobs where it is needed.
expressions
Delivery_Method__c
--> See run: https://www.openfn.org/projects/pd3yk4/runs/r7xrk7rr https://github.com/OpenFn/grassroot-soccer/blob/5505ac0545b62da43addd4435eae7c035f8a2ac1/jobs/2.a.upsertInterventions.js#L36Introduces_micromove__c
--> See run: https://www.openfn.org/projects/pd3yk4/runs/r6grw9n3 https://github.com/OpenFn/grassroot-soccer/blob/5505ac0545b62da43addd4435eae7c035f8a2ac1/jobs/2.e.upsertCoach.js#L126-L128state
See LP for GRS Sandbox Here's are states you can use and re-run on production: