mattermost-plugin-github
mattermost-plugin-github copied to clipboard
Mute functioanlity also silences DM from muted user
There is functionality in GutHub to send a DM when a another GitHub user comments on PR or issues you are assigned to even if they do not have @mentions. There is also a mute feature to silence the messages from a specific user(s).
In previous releases - When a user is muted, comments on your PRs and Issues do not trigger a DM. However, if the comment contains an @mention you would get a DM regardless.
It was recently discovered that in master branch and Release bump 2.1, These DMs are also muted.
Steps:
- Connect test user to GitHub
- Create and issue in GitHub and assign it to yourself
- As an alternate GitHub user, comment on the issue with no @mention
- Note the test user receives the a DM
- As the test user in Mattermost use the GitHub mute command to mute the user in from step 3.
- As the alternate GitHub user, comment on the issue on the issue with no @mention
- Note the test user no longer receives the DM from muted user (this step is just to confirm the correct user is targeted and mute is working)
- As the alternate GitHub user, comment on the issue on the issue with an @mention Observed: No Dm is received by the test user Expected: @mentions should supersede mute logic and user should receive a DM
@DHaussermann I think this issue needs to have some UX discussion, as this point is a bit subjective:
Expected: @mentions should supersede mute logic and user should receive a DM
I'm not sure if the feature had this in its original design. I can imagine a spammy bot mentioning a given user a bothersome number of times in quick succession. If the user explicitly mutes a given user, they likely never want notifications from that user.
@-mentions should not supersede a mute setting. If there are case where a @-mention notification gets through, that would be a bug.
@DHaussermann Could you please check if that case exists?