-
Notifications
You must be signed in to change notification settings - Fork 6
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 organizer summary emails #194
base: main
Are you sure you want to change the base?
Conversation
I'll review this tmrw! I can retroactively send these organizer summaries after the first digest batch is sent |
Sounds like a plan!
From Sam
…On Tue, Aug 22, 2023 at 1:17 AM Gary Tou ***@***.***> wrote:
I'll review this tmrw! I can retroactively send these organizer summaries
after the first digest batch is sent
—
Reply to this email directly, view it on GitHub
<#194 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJP3VREDTCKGUDDKAUYSONTXWRTKBANCNFSM6AAAAAA3ZQD7HA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Was that a rhyme? 😆 |
didn't intend it but sure... that's my email signature for primary school lol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for working on this Sam! the logic is great. here's what I propose to reorganize this code a little bit:
In the SendDigestsJob
, call a new Job called SendOrganizerSummariesJob
and pass in sent_digests
.
In SendOrganizerSummariesJob
, copy in the code that you currently have in DigestMailer#organizer_summary
. Change the each
loop to call DigestMailer#organizer_summary
and pass it a list of sent_digests
specific to that hackathon.
In DigestMailer#organizer_summary
, take in the list of sent_digests
for that hackathon. Compute the count
, and call the mail
method
@garyhtou thanks for the review! hopefully I understood you correctly here, just pushed the restructure |
Co-authored-by: Matt Almeida <[email protected]>
Co-authored-by: Matt Almeida <[email protected]>
Co-authored-by: Matt Almeida <[email protected]>
Co-authored-by: Matt Almeida <[email protected]>
Co-authored-by: Matt Almeida <[email protected]>
Co-authored-by: Matt Almeida <[email protected]>
@@ -0,0 +1,17 @@ | |||
require "test_helper" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would incorporate this test into the existing DigestMailerTest
to match the mailer itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you help me with that? I'm not quite sure what you mean, sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Organizer summaries are in the existing DigestMailer
, so use the existing test file as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I gotcha
I'd like to take care of #190 before we merge this. |
Co-authored-by: Matt Almeida <[email protected]>
@@ -0,0 +1,17 @@ | |||
require "test_helper" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Organizer summaries are in the existing DigestMailer
, so use the existing test file as well.
Co-authored-by: Matt Almeida <[email protected]>
Fixes #192, I feel like the copy is missing something...