Skip to content
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

Allow multiple mentors to teach a single section #464

Open
smartspot2 opened this issue Jan 22, 2024 · 0 comments
Open

Allow multiple mentors to teach a single section #464

smartspot2 opened this issue Jan 22, 2024 · 0 comments
Labels
enhancement New feature or request sev5 Low severity - General guidance

Comments

@smartspot2
Copy link
Member

In some special cases, more than one mentor may be assigned to a single section. This is currently disallowed by the database models, as the Section object has a one-to-one (or none) relationship between Mentor objects.

Changing this to a many-to-one relationship (through a foreign key on Mentor to Section) could allow for this feature. However, there are currently many assumptions in the view functions relying on the fact that any given section will only have one mentor. This means that a lot of this logic would need to be rewritten and checked to ensure that nothing breaks as a result of this change.

Changing the section.mentor to a section.mentor_set would also make fetching the course associated with the section a lot harder (since we'd need to fetch the mentor set and get an arbitrary mentor prior to getting the course field). This means that some additional consideration must be made regarding these relationships.

@smartspot2 smartspot2 added enhancement New feature or request sev5 Low severity - General guidance labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sev5 Low severity - General guidance
Projects
None yet
Development

No branches or pull requests

1 participant