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

Tickets generated from Alert emails do not link to the associated course #5586

Open
ragesoss opened this issue Jan 17, 2024 · 3 comments
Open

Comments

@ragesoss
Copy link
Member

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.)

@vyas-giri
Copy link

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?

@ragesoss
Copy link
Member Author

@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.

@vyas-giri
Copy link

@ragesoss I see. It's okay, I will look for other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants