Skip to content

Conversation

@JeangelLF
Copy link
Contributor

Ticket

Resolves https://github.com/corona-school/project-user/issues/1526

What was done?

  • Use cancelSubcourse when a student is deactivated, so we also cancel appointments (and its reminders for the participants)

@JeangelLF JeangelLF marked this pull request as ready for review September 5, 2025 07:54
@realmayus realmayus temporarily deployed to backend-fix-cancel-subc-lgduth September 5, 2025 07:56 Inactive
Jonasdoubleyou
Jonasdoubleyou previously approved these changes Sep 5, 2025
@JeangelLF JeangelLF marked this pull request as draft September 8, 2025 10:11
@realmayus realmayus temporarily deployed to backend-fix-cancel-subc-j8lv8b September 8, 2025 10:11 Inactive
// There are multiple instructors, so just remove the student from the subcourse
if (subcourse.subcourse_instructors_student.length > 1) {
await deleteSubcourseInstructor(userForStudent(student), subcourse, student);
} else if (!(await subcourseOver(subcourse))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the course is over, we also do not want to remove the instructor if there are multiple instructors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants