knowledge-repo icon indicating copy to clipboard operation
knowledge-repo copied to clipboard

Email default_recipients value for subscription emails

Open rahulravindran0108 opened this issue 7 years ago • 4 comments

Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj

Why does this line exists ? https://github.com/airbnb/knowledge-repo/blob/master/knowledge_repo/app/utils/emails.py#L90 shouldn't it be an environment variable that an organization can set ?

rahulravindran0108 avatar Jul 21 '17 21:07 rahulravindran0108

Hi @rahulravindran0108 ,

Right you are, sir! There's still a lot of code cleanup to do before 1.0.0, so if you find anything else, let us know :). I'll clean this up soon!

M

matthewwardrop avatar Jul 21 '17 22:07 matthewwardrop

Cool. Let me know if you want me to send over a PR ?

I would suggest removing the default recipient altogether and just use recipient bcc in here or if there is an environment variable for default recipient then use that instead.

Even with the code cleanups its a pretty solid product :). I enjoyed setting it up for my org.

rahulravindran0108 avatar Jul 22 '17 16:07 rahulravindran0108

Thanks for the offer. I'm about to land some fairly hefty changes around authentication in #305 , which will lead to a lot of legacy code like this needing cleaning up at some point. I plan to go over the code reasonably soon to fix this.

The authentication patches remove the notion of a 'default' user, and so a lot of this older logic will just disappear :).

matthewwardrop avatar Jul 23 '17 19:07 matthewwardrop

Hi @matthewwardrop. This is just a reminder that this has not been made configurable yet through an environment variable. Thanks!

jihonrado avatar Apr 12 '19 08:04 jihonrado