Closed aleksa-krolls closed 1 year ago
fyi @daissatou2 seeing this fail on platform as well - can use your help with testing in staging project once Mtuchi is done
@aleksa-krolls some concern around this comment Please make changes on a branch off of main, and submit PR to staging when ready to test.
Main and Staging have different commit
The last commit for jobs/PROD/f1-1.sendReferralsToPrimero.js
on main is 1 year ago last commit - f8a4f91, while on staging is 6 month ago last commit - 597f7de
if i open the PR against staging once it's merged to main it will have other changes that staging branch currently have
I am an able to to run the workflow locally successful using the credentials provided in the issue Primero Gambella Demo (openfn testing)
. But i have spotted the issue and raise a PR against staging
see #73
Describe the bug
Job2 is failing with error
TypeError [Error]: Cannot read properties of undefined (reading 'case_id')
because the variables (which reference Job1’s response) are showing undefined in the console.logs. I wonder if Job1 is giving us a different response that we originally anticipated.To Reproduce
expression.js
Job1 using
language-primero@2.3.4
: https://github.com/OpenFn/primero-progres/blob/master/jobs/PROD/f1-1.sendReferralsToPrimero.jsJob2 using
language-http@4.0.0
: https://github.com/OpenFn/primero-progres/blob/master/jobs/PROD/f1-4.sendSuccessToDTP.jsstate.json
Please make changes on a branch off of
main
, and submit PR tostaging
when ready to test.Job1:
Job2 → Please comment out all operations so to not actually try sending this job to DTP… just try to resolve the console.log() issue.
Expected behavior
After we create the case in job1, we should correctly log its case_id in job2.
Toggl
UNICEF Primero-Progres Support [2022-24]