OpenFn / primero-progres

Interoperability solution for UNICEF <> UNHCR interagency referrals between Primero and Progres v4 systems.
https://openfn.github.io/primero-progres/
0 stars 2 forks source link

Flow1-1. Send Referrals to Primero --> upsert 1st matching case #22

Closed aleksa-krolls closed 3 years ago

aleksa-krolls commented 3 years ago

Request

In this job we search for existing Primero cases for unhcr_individual_no before upserting the case with referral info.

See this run where 6 matching Primero cases are found... this is because of bad test data, so shouldn't happen in real life... but please upsert the first matching Primero case found, if multiple. https://www.openfn.org/projects/p5am6e/runs/r5e6yg5r

state

Please re-run all of these Messages in prod to make sure they run successfully. https://www.openfn.org/projects/p5am6e/messages?endDate=2021-06-04T13%3A44%3A29.354Z&jobStates=fail&startDate=2021-06-03T13%3A44%3A29.375Z&triggerId=t9vj34

expresssion

https://github.com/OpenFn/primero-progres/blob/4bbef6a536340f44a657d3455935a1a5471fb21b/jobs/1.upsertExtracts.js#L469-L472

lakhassane commented 3 years ago

@aleksa-krolls I updated the job as specified. However primero keeps randomly returning 500 status code or a 200. Maybe something to check with them. See last 11 runs where all failed then all succeded with no change (https://www.openfn.org/projects/p5am6e/runs)