mattermost-plugin-github icon indicating copy to clipboard operation
mattermost-plugin-github copied to clipboard

Subscriptions --exclude functionality affects all channels

Open DHaussermann opened this issue 4 years ago • 1 comments

When using the exclude functionality the exclusion record that get's created owner/repo - notification : disabled is not channel specific. These exclusions appear in channels where no subscriptions have been created yet and no exclusion was specified. image

This affects event delivery in channel --exclude was never used and prevents events from being delivered for some of the repositories. Steps:

  • Create a subscription where an owner is passed in and exclude a repo /github subscriptions add DylanH20 --exclude DylanH20/Hello-World-1
  • Test and note that events are delivered to the channel for all repos under DylanH20 except for Hello-World-1 (as expected)
  • Create a new channel
  • Type /github subscribe list notice DylanH20/Hello-World-1 - notification : disabled is already showing
  • Type /github subscriptions add DylanH20 to subscribe to all repos underDylanH20

Observed Exclusion of Hello-World-1 affects newly created channel

DHaussermann avatar Oct 07 '21 17:10 DHaussermann

This seems to come from https://github.com/mattermost/mattermost-plugin-github/pull/457 @hanzei and @aaronrothschild I feel this issue should block the release as user can unintentionally impact subscriptions if they tray using the new --exclude functionality.

DHaussermann avatar Oct 07 '21 17:10 DHaussermann

@DHaussermann @mickmister I tried reproducing the error but couldn't. The steps I have followed:

  1. Created an org-level subscription excluding a repo in one channel.
  2. Ran the /github subscription list in another channel but got the Currently there are no subscriptions in this channel. Below are the screenshots: Screenshot from 2024-04-12 12-56-49 Screenshot from 2024-04-12 12-57-08

Can you please some additional steps in regards to this.

Kshitij-Katiyar avatar Apr 12 '24 07:04 Kshitij-Katiyar

@DHaussermann I tried to reproduce the issue by executing the steps provided, but I am not able to do so. The message received shows as follows: image

cc: @Kshitij-Katiyar

AayushChaudhary0001 avatar Apr 15 '24 09:04 AayushChaudhary0001

@mickmister I think we can close this issue as it is not reproducible.

Kshitij-Katiyar avatar Apr 15 '24 16:04 Kshitij-Katiyar

Yeah I think this was explicitly fixed in a PR a while ago

mickmister avatar Apr 15 '24 16:04 mickmister