classroom icon indicating copy to clipboard operation
classroom copied to clipboard

Add multiple teachers to a classroom

Open GuillermoFloresV opened this issue 2 years ago • 6 comments

Describe the bug

We only support one teacher/instructor per class, however, this may not fit all use cases. We would like to be able to have multiple teachers (limit yet to be discussed). The first step would require us to change the Prisma schema / database to support multiple teachers for a given classroom.

Here is how you can approach this task:

  1. Open schema.prisma
  2. Update the Classroom model ==> classroomTeacherId should take an array of Strings. Afterwards you will need to do a prisma migration or wipe the DB and start from scratch.
  3. Search the codebase for all references to classroomTeacherId in javascript files. Update the code so that works with an array. For example, you may want to append to the classroomTeacherId array instead of setting it directly.

GuillermoFloresV avatar Oct 26 '22 19:10 GuillermoFloresV

Hello @GuillermoFloresV I would like to be assigned to this

diegovega49 avatar Feb 02 '23 08:02 diegovega49

My team and I from CTI are working on this.

jtnguyen45 avatar Feb 05 '23 08:02 jtnguyen45

@jtnguyen45 I updated the original description of this issue to reduce the scope of the issue and make it more clear.

utsab avatar Feb 05 '23 20:02 utsab

Sounds great @utsab . Thank you for the clarification.

jtnguyen45 avatar Feb 05 '23 23:02 jtnguyen45

Hi @GuillermoFloresV it looks like people have said they are working on this but it looks dated and no one is currently assigned. I would like to take this on if possible?

theGaryLarson avatar Jul 18 '23 00:07 theGaryLarson

HI @theGaryLarson -- I assigned the issue to you.

utsab avatar Jul 18 '23 08:07 utsab