Closed ksierks closed 5 months ago
I'm wondering about moving def manager_emails
out of the member destroy & create services and into a helper. Maybe call it mailer_helper? I can reference it in the tests too. What are your thoughts?
I'm wondering about moving
def manager_emails
out of the member destroy & create services and into a helper. Maybe call it mailer_helper? I can reference it in the tests too. What are your thoughts?
I think that's a good idea since the methods are duplicated. And mailer_helper
would be a good name!
I'm wondering about moving
def manager_emails
out of the member destroy & create services and into a helper. Maybe call it mailer_helper? I can reference it in the tests too. What are your thoughts?I think that's a good idea since the methods are duplicated. And
mailer_helper
would be a good name!
Done in ae2ec445e70b4c4ed166ff65ccc55e4f8e3e6277.
Covered | Threshold |
---|---|
91.86% | 90% |
What does this PR do and why?
Implemented emails for notifying the user and managers when a direct member has been added/removed to/from a group/project. Addresses another third of #476.
Note: A manager is a member that has a role of owner or maintainer.
Screenshots or screen recordings
Access granted email being sent to a user: Access granted email being sent to a manager: Access revoked email being sent to a user: Access revoked email being sent to a manager:
How to set up and validate locally
~/go/bin/MailHog
.group
orproject
that the logged in user is a manager of. Alternatively, you could create a newgroup
orproject
.Members
page.Note: Email previews are located at http://localhost:3000/rails/mailers/member_mailer.
PR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.