Closed aleksa-krolls closed 4 years ago
Re: f1-j2-casesToOscar.js
(1) Update logs of Primero response to exclude identifying info. https://github.com/OpenFn/unicef-cambodia/blob/b84d3f883a54a21b03d29a04a3612b13749f827b/jobs/f1-j2-casesToOscar.js#L129
Example log output:
Data provided by Primero: { "_id": "4cd06f28d4e1c36df95b5676c4b45159", "case_id": "4611d232-d3d6-4294-8113-b5e71aad79ce", "case_id_display": "aad79ce", "created_at": "2020/07/08 18:12:08 +0000", "location_current": "12110402", "module_id": "primeromodule-cp", "owned_by": "primero_cp", "owned_by_agency": "agency-unicef", "owned_by_phone": "", "services_section": [ { "oscar_case_worker_telephone": "0124353644", "oscar_referring_organization": "agency-cct", "service_implementing_agency": "agency-cct", "service_implementing_agency_individual": "agency-cct-user", "service_status_referred": true, "unique_id": "1b09a2f9-c8c0-4c85-956e-3f1e79a0311f" }, ], "transitions": [ { "created_at": "2020/07/08", "id": "579d2c58-26d7-49ba-9784-e42b850916fb", "service_section_unique_id": "1b09a2f9-c8c0-4c85-956e-3f1e79a0311f", "to_user_local": "agency-cct-user", "to_user_local_status": "in_progress", "transitioned_by": "primero_cp", "type_of_export": "primero", "unique_id": "27802289-2d27-4ca3-97c9-906d21b1386e" } ],
(2) Update logs of data sent to Oscar to exclude identifying info. https://github.com/OpenFn/unicef-cambodia/blob/b84d3f883a54a21b03d29a04a3612b13749f827b/jobs/f1-j2-casesToOscar.js#L177
Case data to be posted to Oscar : { "organization": { "external_id": "4611d232-d3d6-4294-8113-b5e71aad79ce", "external_id_display": "aad79ce", "global_id": "", "mosvy_number": "", "location_current_village_code": "12110402", "address_current_village_code": "", "external_case_worker_name": "primero_cp", "external_case_worker_id": "", "external_case_worker_mobile": "000000000", "organization_name": "cif", "organization_id": "", "is_referred": true, "services": [ { "uuid": "1b09a2f9-c8c0-4c85-956e-3f1e79a0311f", }, ] } }
Waiting to implement this. Want to know how we deal with it in #38 , as it's both expensive to implement (now) and to maintain (for them or us later)
Re: f1-j2-casesToOscar.js
(1) Update logs of Primero response to exclude identifying info. https://github.com/OpenFn/unicef-cambodia/blob/b84d3f883a54a21b03d29a04a3612b13749f827b/jobs/f1-j2-casesToOscar.js#L129
Example log output:
(2) Update logs of data sent to Oscar to exclude identifying info. https://github.com/OpenFn/unicef-cambodia/blob/b84d3f883a54a21b03d29a04a3612b13749f827b/jobs/f1-j2-casesToOscar.js#L177
Example log output: