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.
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 <matt7@hey.com>
Co-authored-by: Matt Almeida <matt7@hey.com>
Co-authored-by: Matt Almeida <matt7@hey.com>
Co-authored-by: Matt Almeida <matt7@hey.com>
Co-authored-by: Matt Almeida <matt7@hey.com>
Co-authored-by: Matt Almeida <matt7@hey.com>
| @@ -0,0 +1,17 @@ | |||
| require "test_helper" | |||
There was a problem hiding this comment.
I would incorporate this test into the existing DigestMailerTest to match the mailer itself.
There was a problem hiding this comment.
Could you help me with that? I'm not quite sure what you mean, sorry
There was a problem hiding this comment.
Organizer summaries are in the existing DigestMailer, so use the existing test file as well.
|
I'd like to take care of #190 before we merge this. |
Co-authored-by: Matt Almeida <matt7@hey.com>
| @@ -0,0 +1,17 @@ | |||
| require "test_helper" | |||
There was a problem hiding this comment.
Organizer summaries are in the existing DigestMailer, so use the existing test file as well.
Co-authored-by: Matt Almeida <matt7@hey.com>
Fixes #192, I feel like the copy is missing something...