Add multiple teachers to a classroom

Đang mở
#166 8 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@theGaryLarson đang làm issue này rồi.

Từ ngày 18/7/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
156
Fork
143
Merge trung bình
11 giờ 47 phút
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của freeCodeCamp/classroom

Tất cả issue của freeCodeCamp/classroom

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.