massenergize / api

Backend Code for Massenergize Portal. This provides the API to the backend database, and is shared by the various front-end portal projects.
MIT License
5 stars 9 forks source link

✨ feat: add background execution for emails and Slack notifications #1155

Closed abdullai-t closed 3 months ago

abdullai-t commented 3 months ago

Summary / Highlights

This pull request adds background execution for email and Slack notifications for better performance, and enhanced logging for email errors.

Details (Give details about what this PR accomplishes, include any screenshots etc)

https://github.com/user-attachments/assets/59cb844c-9513-4bab-87d1-d8dc369432ef

Testing Steps (Provide details on how your changes can be tested)

Requirements (place an x in each [ ])

Transparency (Project board)
codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 55.74%. Comparing base (366cba8) to head (0fad127). Report is 1 commits behind head on main.

Files Patch % Lines
src/_main_/utils/emailer/send_email.py 60.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1155 +/- ## ======================================= Coverage 55.74% 55.74% ======================================= Files 461 461 Lines 33886 33891 +5 ======================================= + Hits 18890 18893 +3 - Misses 14996 14998 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.