Skip to content
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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

mray-infor
Copy link

@mray-infor mray-infor commented Mar 22, 2019

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.

@grahamc
Copy link
Member

grahamc commented Mar 22, 2019

I wonder if for simplicity and clarity, it might be worth not trying to abstract them?

@mray-infor
Copy link
Author

@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?

@mray-infor
Copy link
Author

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.

@Mic92
Copy link
Member

Mic92 commented Jun 10, 2020

Running hydra should be easier since: #759

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants