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

Improve BlockedUserAlert emails #5795

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cyrillefr
Copy link
Contributor

@cyrillefr cyrillefr commented Apr 25, 2024

What this PR does

Closes issue #5776

On one Alert, need to email to instructors + blocked student
-edited-

  • a new mailer + new template
  • a new method in BlockUserAlert to mails to a set of concerned people
    which replace the current one in blocked_user_monitor.rb
  • the corresponding spec
  • a new line in preview mailer

I have added a template that might not be exactly polished but is a good start.
To be expanded by me or others.

@@ -19,4 +19,21 @@ def alert(alert, recipient)
params[:reply_to] = @alert.reply_to unless @alert.reply_to.nil?
mail(params)
end

def self.send_msg_to_student(alert, recipient)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding the student and all the instructors to the recipients, rather than sending a separate email to each, is the best way to do this. That way, it can be the beginning of a conversation among the student, the instructors, and the Wiki Education staff member.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aaah. I have done a bit complicated code I guess. I will redo it, and will rebase since many things will disappear :)

- a new mailer + new template
- a new method in BlockUserAlert to mail to a set of concerned people
  which replace the current one in blocked_user_monitor.rb
- the corresponding spec
- new line in preview mailer
@cyrillefr cyrillefr force-pushed the Improve_BlockedUserAlert_emails branch from d3b5eb9 to df6c6f8 Compare May 2, 2024 20:18
@cyrillefr
Copy link
Contributor Author

I have updated the first comment. I don't know if it is visible or not.
Now, it 's clear :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants