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
Propose INotifier #8200
base: master
Are you sure you want to change the base?
Propose INotifier #8200
Conversation
Hey @avdata99 👋 It sounds like it might be a bit out of scope 😅 but I wanted to ask |
Yes @mackeynichols, this change will allow you to implement INotifier in your extension and notify with any method. |
This is a related extension by @JVickery-TBS for using "gcnotify" (a fork of https://www.notifications.service.gov.uk/ ) for sending ckan emails: https://github.com/open-data/ckanext-gcnotify Right now it works by monkey patching ckan core, a proper interface like the one you propose would be much nicer. |
Yeah, would be nice to have an implement to extend emails instead of just monkey patching the mailer script
|
Thanks @wardi, that's what I'm doing now. It ~works but not for all cases. |
I think this is ready for review @wardi |
Proposed fixes:
In different CKAN projects I'm using Sendgrid and Slack to notify users. I assume other users have similar requirements.
Sometimes we don't have (and don't need) an SMTP server.
I think it will be nice to allow users to work without SMTP and define custom notification services (or don't notify at all)
I started this PR to:
INotifier
interface to allow extension to notify in different ways.I know this will require more work but I want to be sure that this is a good idea.
Features:
Please [X] all the boxes above that apply