-
Notifications
You must be signed in to change notification settings - Fork 154
JSON enrollment importer #2187
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
JSON enrollment importer #2187
Conversation
6f2f53a
to
cc0f045
Compare
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.
not yet manually tested, because test data doesn't import (course = self.course_map[event["relatedevents"]["gguid"]] KeyError: '0x6'
)
If possible, we should remove the debug info text from the log email |
Done. |
Still missing
|
742606d
to
af1825d
Compare
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.
- Currently all new evaluations are listed under "New Evaluations" and "Updated Evaluations" in the import log
- For all "unused events" the programs are currently not imported
b09ecfc
to
d3fab05
Compare
@hansegucker tests are done. some mypy stuff is left, do you want to look into it? |
e5e5290
to
85a6a6a
Compare
631e44f
to
fdee2a3
Compare
fdee2a3
to
fec92c1
Compare
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.
Great work 🚢
programs = [ | ||
self._get_program(c["cprid"]) for c in data["courses"] if c["cprid"] not in settings.IGNORE_PROGRAMS | ||
] | ||
course.programs.add(*programs) |
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.
Is this something we want to track as changed?
participant_changes = set(evaluation.participants.all()) != set(participants) | ||
evaluation.participants.set(participants) |
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.
Should we use our helper here? Or is it wasteful when we don't actually care about the old values?
Close #2131