-
Notifications
You must be signed in to change notification settings - Fork 4
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
deduplicate ilios user records before processing their enrollment. #78
base: MOODLE_404_STABLE
Are you sure you want to change the base?
deduplicate ilios user records before processing their enrollment. #78
Conversation
while at it, i reworked how ilios user records without campus ids are filter out - i made that a pre-processing step to deduplication.
2076130
to
c793b2c
Compare
- corrects docblock. - adds assertion to confirm that no enrolment happened.
5fbf4a8
to
32c4c1e
Compare
32c4c1e
to
925c48a
Compare
Thanks @stopfstedt. The code looks good to me. I just wonder that it is really impossible or too hard to implement this on the API's endpoint. It seems to me that if the Ilios's user API is returning these users with missing or duplicate |
@ctam we could add a filter to remove the users with a missing ID, but I doubt it would save much. I wouldn't want to remove duplicates with any sort of filter because, as shown here, the decision about which account to use remains a local one and is up to the API consumer. Given this is an automated, and not a user facing process, this seems like a good way forward. |
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.
I think there would be value in trapping these duplicates and cleaning up the data in Ilios over time. Could we log them for inspection?
fixes #72