-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple channels #75
Support for multiple channels #75
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #75 +/- ##
===========================================
+ Coverage 0 17.03% +17.03%
===========================================
Files 0 4 +4
Lines 0 587 +587
===========================================
+ Hits 0 100 +100
- Misses 0 469 +469
- Partials 0 18 +18
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this great improvement @limod!
I have a few requests to avoid some possibly excessive logging, as well as a few other comments.
In general though LGTM 👍 Great work
@@ -48,19 +61,18 @@ func (p *Plugin) OnActivate() error { | |||
return err | |||
} | |||
|
|||
split := strings.Split(p.configuration.TeamChannel, ",") | |||
if len(split) != 2 { | |||
teamChannels, err := parseTeamChannelsNames(p.configuration.TeamChannel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to the changes in this PR:
It's concerning that this is all happening in OnActivate
, and not also triggered by OnConfigurationChange
, since I believe this means that you have to restart the plugin for any config changes to take effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a ticket for this #77
Accidentally removed @stylianosrigas, i am not able to readd him. @mickmister |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @limod 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Thanks @limod!
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
When will the review continue? |
@mkdbns @DHaussermann @jasonblais Thoughts on handling QA review on community contributions like this? |
@mkdbns would this be an example contribution for your team to QA review & merge once your team has the proper GitHub access? |
@limod @mickmister From our QA Tested and Passed
|
Co-authored-by: kshitij katiyar <[email protected]>
Thanks for the contribution @limod! |
Hi!
i added the feature to specify multiple channels. We have multiple environments and want to seperate your monitoring into different mattermost channels.
You can configure the field
Channels to send notifications
to include multiple channels separated by;
e.g.teamname,channelname;teamname-2,channelname-2
You can configure the target channel in the webhook URL, e.g.
https://your-mattermost-url/plugins/com.mattermost.aws-sns?token=your-mattermost-token?channel=teamname,channelname
If you specify no
channel
query parameter, the first channel will be used. Therefore the change should be compatible with older version.Added some tests: go test ./... -cover
Added the flag
CGO_ENABLED=0
in the Makefile because i hat problems running the plugin in a dev mattermost setup (Image: mattermost/mattermost-team-edition:7.4.0): Plugin could not start becasue of errorGLIBC_2.34 not found
, with local development in the current mattermost-server project, everything worked without the flag. Any ideas why i hit this error?