-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Removing function 'send_email' #2499
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
Conversation
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.
I know no reason removing this would cause a problem.
You also need to remove the call to this endpoint from inside of the UI, unless that UI component uses some newer logic. |
That's a point - there's no call from UI exist. Or any other call. It looks like some abandoned piece of code, which was never used. |
Which UI component? I find no callers of send_email. |
It looks like we can also get rid of the SMTP_SERVER config setting, which isn't used anywhere else. |
It's probably also worth to backport it to 0.9.x and 1.0.x |
Yes but that doesn't use that config setting, it uses the django |
Ah, nice find then, @DanCech |
Codecov Report
@@ Coverage Diff @@
## master #2499 +/- ##
==========================================
- Coverage 80.01% 79.96% -0.05%
==========================================
Files 85 85
Lines 9131 9091 -40
Branches 1948 1948
==========================================
- Hits 7306 7270 -36
+ Misses 1544 1540 -4
Partials 281 281
Continue to review full report at Codecov.
|
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.
Nice work!
It's insecure, not used in the code and undocumented.
Fixing #2008
Please also note that sending email from Dashboard is implemented in completely different commit 'e2a70d8' and not use 'send_email' function at all.