teammates
teammates copied to clipboard
Instructors reminding non-submitters: instructors are considered non-submitters even if there are no questions for instructors
Environment: v8.13.1 (production)
Steps to reproduce
- Instructor clicks the
Remind
->all non-submitters
of a session from the home page
Problem: Instructors of the course are listed as non-submitters even when the session doesn't have any questions for instructors.
I want to have a try at this issue
I don't think showing the instructor's name is necessary because the instructor is the one who is sending the reminder emails here, unless can you think of a case where the instructor specially wants to send this survey to another instructor?
... unless can you think of a case where the instructor specially wants to send this survey to another instructor?
@hoanglan21 Yes, there can be multiple instructors in a course (e.g., tutors) and an instructor might want to send reminders to other instructors of the course.
So i have looked at how you get the list of non-submitters: you get a list of all instructors & students in the class (1) and then a list of people who have had at least 1 answer (2), whoever is in list (1) but not in list (2) will get sent a reminder email. This makes it hard to change the code because I will have to make a query of all the questions and their respective responders to see if any of the questions require the instructors to answer them or not. Do you have any advice on how to tackle this? Should i fix this from the BE or the FE?
So i have looked at how you get the list of non-submitters: you get a list of all instructors & students in the class (1) and then a list of people who have had at least 1 answer (2), whoever is in list (1) but not in list (2) will get sent a reminder email. This makes it hard to change the code because I will have to make a query of all the questions and their respective responders to see if any of the questions require the instructors to answer them or not. Do you have any advice on how to tackle this? Should i fix this from the BE or the FE?
Thanks for looking into this @hoanglan21 If it is hard/costly to achieve, we can leave it be. After all, the instructor using this feature would know if the session contains questions for instructors and reminders need to be sent to instructors as well.
I'll leave this issue open so that a senior dev can confirm the technical difficulty you have mentioned, after which we can close this issue.
@damithc Investigated this issue.
The cause of this issue is the GetStudentsAction::execute
method returns a response that includes the instructor (I believe that this is wrong). However, this also suggests that the student's database is polluted with instructor entires. This is a very big issue and therefore I do not know if this behavior for the GetStudentsAction::execute
is intended.
[
Student:Alice Betsy[[email protected]],
Student:Benny Charles[[email protected]],
Student:Charlie Davis[[email protected]],
Student:Danny Engrid[[email protected]],
Student:Emma Farrell[[email protected]],
Student:Francis Gabriel[[email protected]],
Student:Gene Hudson[[email protected]],
Student:Hugh Ivanov[[email protected]],
Student:John Doran[[email protected]],
]
Notice the response of the GetStudentsAction::execute
method. I believe that the last entry should not be there. However, this is directly coming from the students' database (no appending or merging of data from the instructor database).
@sivayogasubramanian note that it is possible for an instructor to be a student. In fact, the demo courses we create for instructors (when they join TEAMMATES) have themselves added as students. Does that affect your finding above?
Hi @damithc , Does this issue still open? If so, could I work on it for my first open source study? TY.