Skip to content

Getting e mail notifications when not supposed to, and empty X-GitLab-NotificationReaso

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

I have my custom e mail notifications set as follows:

Screen_Shot_2018-06-01_at_10.55.03_AM

As can be seen by the settings above, I should not get email notifications for new issues, and I should not get notifications for when somebody comments on that issue. However i got e mails when somebody comments on the issue, when somebody creates the issue, when somebody pushes commits to a merge request --- for emails and merge requests that I have not participated in

On the emails where somebody comments on the new issue, there is no header for X-GitLab-NotificationReason. On the emails where the issue is closed or reassigned, the notification reason header is present but has an empty value, as can be seen in the screenshot below:

Screen_Shot_2018-06-01_at_11.01.33_AM

It is worth noting that:

  • the first notification I received was for the first comment on the issue (which did not tag anybody in it). Activity prior to this comment was only the creation of the issue and that editing of the description. There was no merge request or branch created, and there were no labels at the time of the first email.

  • The project containing the issue was within a group where both me and my friend had master privileges, but the group was owned by someone else. The project was created by the same friend

Steps to reproduce

  1. Set your email notification settings to what I have shown in the summary
  2. Have some friend create a project and add you to it as a master
  3. create a throwaway issue on the project to make sure you are successfully added to it
  4. Have your friend create an issue and then comment on it. You should now get an email about the comment

Example Project

I was able to replicate the bug using this issue here. I have my own notification settings set to what is shown in the summary, and received notification emails for the comment hrshikesh made, and for the issue being closed. dh-test/notification-test-project#3 (closed)

What is the current bug behavior?

I am getting undesired e mails. This is described above in the summary

What is the expected correct behavior?

Ishould not be getting these e mails. This is described above in the summary

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Not relevant as this happens on GitLab.com

Results of GitLab application Check

Not relevant as this happens on GitLab.com

Possible fixes

no idea

Edited by 🤖 GitLab Bot 🤖