ucdavis / ipa-web

Instructional Planning and Administration API
MIT License
2 stars 2 forks source link

[rtt-131] teaching call cannot remove preferences hotfix #335

Closed jaroldwong closed 3 years ago

jaroldwong commented 4 years ago

It looks like removing the teachingAssignmentRepository.deleteById() method broke the ability to delete teaching preferences (teachingAssignment w/ fromInstructor flag) in an instructor Teaching Call.

The default teachingAssignmentRepository.delete() method un-schedules the teachingAssignment deletion because of some cascade association.

Relevant: https://stackoverflow.com/questions/16898085/jpa-hibernate-remove-entity-sometimes-not-working