Skip to content

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

While on master

  1. Create a project
  2. Invite a user as a member of the project
  3. One of the users, create an issue and attach a design to it
  4. Open the design and click on it to add a comment.
  5. In the comment, @ mention the second user.
  6. Navigate to the letter_opener URL of your GDK (Mine is: http://127.0.0.1:3000/rails/letter_opener/)
  7. 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

  1. Clicking on the link should show a 'You have been unsubscribed from this thread' message.

Related to #411420 (closed)

Edited by Joseph Wambua

Merge request reports