Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates
prepareImportOperations()
to replace theperson.import
bulk operation with new ops being added to the backend in the near future, that separates the actions into separate ops:person.get
to find an existing person by ID (or create if it's missing)person.create
to create a person object when no ID existsperson.setfields
to set fields on an existing or new person objectperson.tag
to tag an existing or new person objectperson.addtoorg
to add an existing or new person object to an organizationIn doing so, it also replaces the test suite for
prepareImportOperations()
to be a little bit more lean.Screenshots
None
Changes
prepareImportOperations()
to use new opsprepareImportOperations()
test suiteGender
typeNotes to reviewer
None
Related issues
Undocumented