WikiEduDashboard
WikiEduDashboard copied to clipboard
Tickets generated from Alert emails do not link to the associated course
What is happening?
When an alert such as an ArticlesForDeletionAlert gets generated, the Alert record associates it with the relevant Course, and then sends an email to the Wiki Education staff member supporting that course, and that email gets forwarded back to the Dashboard to become a Ticket. However, the Ticket does not recapture the connection to the specific Alert or Course records (except in the subject and body of the ticket message).
Thus, searching for tickets associated with a particular course will miss many tickets that are treated as 'Course Unknown' because they started via Alert emails.
Expected behavior
When any kinds of Alert email ends up as a Ticket, the Ticket should connect to the Course and User of the Alert.
Additional context
Probably the easiest way to handle this would be to add some metadata to the hidden text that gets appended to Alert emails. (See app/views/untrained_students_alert_mailer/email.html.haml for example.)
Hi @ragesoss ! I want to work on this but I am unable to reproduce this issue on localhost can you guide me on how I can do that?
@vyas-giri this one will be somewhat difficult to reproduce without setting up a similar-to-production server that can handle email. Someone with access to our staging server will probably need to handle it.
@ragesoss I see. It's okay, I will look for other issues.