Skip to content
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

Add clause to TextUtils.sendEmail to allow for HTML-only reports #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shreyb
Copy link
Collaborator

@shreyb shreyb commented Oct 2, 2021

With the upgrade to python3, gracc-reporting seems to have lost the ability to allow for multipart report emails where only an HTML block was given to sendEmail. This is a feature we use for all of the FIFE reports at Fermilab - we generate the HTML from external templates that are packaged with the reports - so I believe the addition of these two lines would allow for such emails to be sent.

Please let me know what you all think or if you have any questions.

Draft status:

  1. Draft until I verify with all FIFE reports that this works. I've verified with our Job Efficiency Report, but there are two more reports I'd like to verify before marking this ready.
  2. I have not tested this change with the OSG reports - if you think I should do that before marking this PR ready for review, I'm happy to do so.

@shreyb
Copy link
Collaborator Author

shreyb commented Oct 4, 2021

Follow-up:

  1. Tested with all of the FIFE reports, and this change fixes the issue I was running into when pulling in the latest gracc-reporting.
  2. I checked 3 or the gracc-osg-reports, and saw that they ran fine with the change in this PR.

Please let me know if you have any questions or concerns about this change, or would like to run tests on your end.

Thanks!

-Shreyas

@shreyb shreyb marked this pull request as ready for review October 4, 2021 21:25
@shreyb shreyb requested review from zvada and djw8605 October 4, 2021 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant