Send email digest for activities in Hypha for org level staff - #2991
Conversation
d00f9a5 to
5fb4455
Compare
6a4b4ba to
8532fdd
Compare
|
@fourthletter please review the email format and copy |
Codecov ReportBase: 80.34% // Head: 80.46% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2991 +/- ##
==========================================
+ Coverage 80.34% 80.46% +0.11%
==========================================
Files 378 378
Lines 18390 18359 -31
==========================================
- Hits 14776 14772 -4
+ Misses 3614 3587 -27
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
8532fdd to
98c8d13
Compare
|
/rebased with main branch |
|
When running the Setting |
|
Then I get this error: The new Locally I use |
frjo
left a comment
There was a problem hiding this comment.
A lot of nice functionality here! Only some concerns regarding sending out e-mails.
I got these too. I believe that because the dates are stored in the DB without timezone info. IMO, timezone support should enabled and all the time datetime object should always contain a timezone info them. |
Ok. I used an STMP email server via .env configs and didn't change anything else in the |
|
In local.py: That activate this in dev.py: |
bafc375 to
619a9b0
Compare
|
Also, please check if you set the value of It defaults to |
| if total_count: | ||
| email = MarkdownMail('emails/activity_summary.md') | ||
| email.send( | ||
| to=settings.ACTIVITY_DIGEST_RECIPIENT_EMAILS, |
There was a problem hiding this comment.
Is ACTIVITY_DIGEST_RECIPIENT_EMAILS a list or a comma separated string?
There was a problem hiding this comment.
ACTIVITY_DIGEST_RECIPIENT_EMAILS comes via env.list() which converts a comma separated string to python list.
ACTIVITY_DIGEST_RECIPIENT_EMAILS is a list at the end.
|
It works for me now, see #3004. |
frjo
left a comment
There was a problem hiding this comment.
This is looking really nice. Some minor issues I commented on separately.
7fc379f to
b6dda2c
Compare
|
@frjo I've also added 'Auto-Submitted' header with 'auto-generated' value
https://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml |
Use translations for email
8a13212 to
124a45d
Compare
|
/rebased |

Fixes #2882
This feature complements or provides an alternative to the slack notifications sent by the system to organization staff members.
python manage.py send_staff_email_digestACTIVITY_DIGEST_RECIPIENTS_EMAILSACTIVITY_DIGEST_RECIPIENT_EMAILSsetting