-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] OpenSpp Adaptor #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Rename Household to group everywhere.
- Add
getIndividual
- Add
getPrograms
- Add
getEnrolledPrograms
- Add
enroll
- Add
unenroll
- Add
createChangeRequest
]; | ||
let defaultFields = [ | ||
"individual", "kind", "start_date", "ended_date", | ||
"individual_birthdate", "individual_gender" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those field ("individual_birthdate", "individual_gender") are not in the default implementation of OpenSPP I think.
Try the code with a fresh install with openspp-docker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, this is not in OpenSPP, but is implemented by you in OpenG2P repo. (link here)
And I think that it is good to have.
sppConnector.connect((err) => { | ||
if (err) { | ||
Log.error(err); | ||
throw new Error("Can't login to OpenSPP, please check your credentials or network!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have more details in the error we can give to the users?
`msgraph` adaptor
New expandReferences API
Fix opinionator
Mailgun: update to mailgun.js
1) Don't try to expand a stream 2) don't callback at the with an empty chunk
it was not being used
Fix streaming interface to parseCSV
`msgraph` support stream
Summary
Add adaptor for OpenSpp
Details
Based on npm module Odoo [https://www.npmjs.com/package/odoo].
Creating a adaptor for OpenSPP with these functions:
registrant_id is from: https://github.com/OpenSPP/openspp-registry/issues/247
Implement the methods:
Issues
Issue
Review Checklist
Before merging, the reviewer should check the following items:
migration guide followed?
dev only changes don't need a changeset.