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 mentors to leave/review comments for students #853

Open
7 tasks
karbassi opened this issue Jan 26, 2021 · 0 comments
Open
7 tasks

Allow mentors to leave/review comments for students #853

karbassi opened this issue Jan 26, 2021 · 0 comments
Assignees
Projects
Milestone

Comments

@karbassi
Copy link
Member

This one needs to be thought out some more, but the basic idea is:

  • Allow mentors to read and leave comments about a student
    • Only allow mentors to read and leave comments about students in that specific class. For example, if a mentor is signed up for class number 123, the mentor can only read/write comments for the students enrolled in class no. 123.
    • Only allow mentors who have passed the background check completed
  • The comments are write-only for mentors. Mentors can write a comment, but they cannot edit it.
  • Comments are tied to the mentor and timestamped.
  • Comments need to be approved by an admin. They are visible to that mentor-only until approved by a mentor, which makes the comment visible to all mentors (of that session)
  • Allow admins to 'delete' a comment (is_active). Don't actually delete, just hide from all users. We'd like to keep a record of bad actors, if something happens.

Model (WIP)

class StudentComment(models.Model):

    # Relationships
    mentor = models.ForeignKey(MENTOR)
    student = models.ForeignKey(STUDENT)
    session = models.ForeignKey(SESSION)
   
    # Fields
    body = models.TextField(max_length=1000)
    is_active = models.BooleanField(default=False)
    is_approved = models.NullBooleanField(default=False)
    created = models.DateTimeField(auto_now_add=True, editable=False)
@karbassi karbassi added this to the Jan 2021 milestone Jan 26, 2021
@karbassi karbassi added this to To do in Jan 2021 via automation Jan 26, 2021
@karbassi karbassi added this to To do in Feb 2021 via automation Jan 26, 2021
@karbassi karbassi removed this from To do in Jan 2021 Jan 26, 2021
@karbassi karbassi modified the milestones: Jan 2021, Feb 2021 Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants