Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
AO3-5130 Rails BOT: Fix co-creator notification for chapter #3023
Conversation
| @@ -30,12 +30,12 @@ def do_notify | ||
| # Notify new co-authors that they've been added to a creation | ||
| def notify_co_authors | ||
| this_creation = self | ||
| - creation = self.work if self.is_a?(Chapter) | ||
| + creation = self.is_a?(Chapter) ? self.work : self |
redsummernight
changed the title from
AO3-5130 Fix co-creator notification for chapter
to
AO3-5130 Rails BOT: Fix co-creator notification for chapter
Aug 31, 2017
sarken
added
Awaiting review
Priority: Broken on Test (High)
labels
Aug 31, 2017
sarken
approved these changes
Aug 31, 2017
This looks good!
Would you have time to add a test for this email? Even something short, like modifying
to check that 1 email is sent andAnd the email should contain "You have been listed as a co-creator on the following work"?
If you don't have time, we can make a new issue for tests.
sarken
added
Reviewed: Ready to Merge
and removed
Awaiting review
labels
Aug 31, 2017
sarken
merged commit bbebb4a
into
otwcode:master
Aug 31, 2017
redsummernight
deleted the
redsummernight:AO3-5130-cocreator-chapter-email
branch
Aug 31, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
redsummernight commentedAug 31, 2017
•
Edited 1 time
-
redsummernight
Sep 1, 2017
Issue
https://otwarchive.atlassian.net/browse/AO3-5130
Purpose
The Rails 5.0 upgrade introduced co-creator notification for chapters, however the email template doesn't handle chapters. If the creatable is a chapter, we'll use the parent work in the notification instead.
Testing
See issue. In a local environment I have trouble sending actual emails, so I log them to check the contents: