OpenFn/unicef-cambodia

Primero get cases job cursor is not only fetching cases since the last sync

daissatou2 opened this issue · 4 comments

Bug Report

Background, context, and business value

Please make sure the Primero get cases job is only fetching cases that have been created or updated since the last sync. It looks like the job is currently fetching cases outside of this requirement.

See this run from yesterday: https://www.openfn.org/projects/primero-oscar-cambodia-io-staging/runs/06195800-7c47-7156-908c-9d2e1ba2cfc3

case_id 4D3B877 was not updated yesterday but it's being sent to OSCaR again. Let me know when you are testing and I can create test data.

expression.js

https://github.com/OpenFn/unicef-cambodia/blob/master/jobs/V2/f1-j1-getPrimeroCases.js

@lakhassane @daissatou2 how's this going? Any help needed today?

@daissatou2 this is ready for testing!