For the F2-J2job we are currently grouping services received from Oscar by service_type. See example below.
Syncing two services with the same service_type. Line 74 is what we received from Oscar, line 226 is what we send to Primero. You'll notice that because both of the services have a service_type of family_based_care, we are grouping the two subtypes together in one service ( see line 195), instead of sending TWO separate services.
Request
We should be sending 1 service to Primero for EACH service from Oscar, even if the services received from Oscar are of the same service_type.
Background
For the
F2-J2
job we are currently grouping services received from Oscar byservice_type
. See example below.Syncing two services with the same service_type. Line 74 is what we received from Oscar, line 226 is what we send to Primero. You'll notice that because both of the services have a
service_type
offamily_based_care
, we are grouping the two subtypes together in one service ( see line 195), instead of sending TWO separate services.Request
We should be sending 1 service to Primero for EACH service from Oscar, even if the services received from Oscar are of the same
service_type
.expression
MAKE SURE TO ONLY UPDATE JOBS IN THE
V2
FOLDER: https://github.com/OpenFn/unicef-cambodia/blob/b2026b58b902ff03764a0334ec52234da90ad8f2/jobs/V2/f2-j2-upsertCasesToPrimero.js#L362-L421state
Oscar (to generate state):
{ "configuration": "Oscar Staging (API only user)", "data": "Data will be generated from this job" }
Primero: { "configuration": "Primero V2 Cambodia Demo API user", "data": "Run F2-J1 to generate state" }
To test
We cannot delete data in Primero so when you are ready for testing, you can notify @daissatou2 and she'll create test data for this scenario.