-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Microsoft Teams notification plugin #646
base: master
Are you sure you want to change the base?
Conversation
I wonder if for simplicity and clarity, it might be worth not trying to abstract them? |
@grahamc You mean, just duplicate 70% of the SlackNotification.pm code in MicrosoftTeamsNotification.pm? Or move the common code into some sort of imported utility class instead of trying to use inheritance? |
I gave up on the fancy inheritance structure, since I'm having trouble even building Hydra to test the code to see what went wrong. Instead I just let the MSTeams plugin duplicate some code (ugh) from the Slack plugin. Though I've factored out a few common operations into a separate util file, to make it less horrible. |
Running hydra should be easier since: #759 |
Adds a new notification plugin for Microsoft Teams, for those of us who aren't on Slack.
I refactored the existing SlackNotification.pm into a pseudo-abstract class called RichMessengerNotification.pm (I don't think Perl has "real" abstract classes, but I could be wrong), then had both SlackNotification.pm and the new MicrosoftTeamsNotification.pm inherit from it.
I have no prior experience with Perl, definitely no experience with Perl inheritance, and no clear idea of how to test this thing. It might be completely broken right now. Any advice would be appreciated.