Skip to content

Conversation

@charles-cowart
Copy link
Contributor

Status change emails now more informative

@charles-cowart charles-cowart changed the title Fix #3230 WIP Fix #3230 Jan 31, 2023
@coveralls
Copy link

coveralls commented Jan 31, 2023

Coverage Status

coverage: 92.928% (+0.004%) from 92.924%
when pulling fc29c98 on charles-cowart:email_status_upgrade_v2
into bda13f8 on qiita-spots:dev.

@charles-cowart
Copy link
Contributor Author

No existing tests on email generation to speak of. Jobs in testing appear to be Processing Jobs type. As discussed we may consider this upgrade w/out tests.

@charles-cowart charles-cowart changed the title WIP Fix #3230 Fix #3230 Jan 31, 2023
Copy link
Member

@antgonza antgonza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charles-cowart, I like the new _notify_updated_status and code looks good. However, after your changes, I think _notify_updated_status could become something like _generate_notification_message that will return a subject/message strings and if empty nothing will be sent via email (while if they are not empty an email will be sent). This separation will allow to test the subject/message generation; what do you think?

@charles-cowart
Copy link
Contributor Author

@antgonza I think it sounds good, although we still have an issue with simulating the jobs objects themselves. I can work on that for a test.

@antgonza
Copy link
Member

I think (at minimum) you can use Artifact(1)._generate_notification_message and Artifact(8)._generate_notification_message

Copy link
Member

@antgonza antgonza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments.

@antgonza
Copy link
Member

BTW you need to pull from dev as the error you are finding has already fixed in that version.

@antgonza antgonza merged commit 3e771d5 into qiita-spots:dev Feb 21, 2023
@charles-cowart charles-cowart deleted the email_status_upgrade_v2 branch February 21, 2023 19:38
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.

3 participants