Add ability to unsubscribe from design management notifications
What does this MR do and why?
We are fixing a bug where it is not possible to unsubscribe from design management notifications by clicking the 'Unsubscribe' link in emails that are sent when a comment is added to a design.
Screenshots or screen recordings
Before | After |
---|---|
Before | After |
How to set up and validate locally
master
While on - Create a project
- Invite a user as a member of the project
- One of the users, create an issue and attach a design to it
- Open the design and click on it to add a comment.
- In the comment,
@
mention the second user. - Navigate to the
letter_opener
URL of your GDK (Mine is: http://127.0.0.1:3000/rails/letter_opener/) - The comment should have triggered an email notifying the second user since they were mentioned. Clicking on the 'unsubscribe' link at the bottom of the email should result in a
NoMethodFound
exception.
While on this branch
- Clicking on the link should show a 'You have been unsubscribed from this thread' message.
Related to #411420 (closed)
Edited by Joseph Wambua