penn-courses
penn-courses copied to clipboard
PCA Resyncing Logic
- Adding
transaction.atomic()
wrapper to webhook database calls, to reduce potential consistency errors between our StatusUpdate models and our Section model. This required modifying one of our existing test cases. - Modifying logic for
loadstatus
management command to conditionally add StatusUpdate objects to ensure consistency between the last StatusUpdate and the status attribute of the Section model.registrarimport
also usesloadstatus
's logic, but it currently does not add StatusUpdate objects – this can be changed easily by settingadd_status_update=True
.