-
Notifications
You must be signed in to change notification settings - Fork 54
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
Merge branch with master #2885
base: master
Are you sure you want to change the base?
Merge branch with master #2885
Conversation
post_data = Net::HTTP.post_form(URI.parse(mailgun_url), { | ||
:from => "Student Insights job <kevin.robinson.0@gmail.com>", | ||
:to => target_email, | ||
:subject => "Weekly Reminder #{date_text}", |
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.
It might be a good idea to add "Student Insights" to the subject here
.joins(:event_notes) | ||
.joins(:homeroom) | ||
.joins(:students) | ||
.where("students.grade IN ('KF', '1', '2', '3', '4', '5', '6', '7', '8') AND event_notes.created_at >= now() - INTERVAL '7 DAYS' ") |
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.
3 comments here:
event_notes has a recorded_at field that we should use instead of created_at.
We'd also like to capture notes that were updated within the time period. The event_note model has a method latest_revision_at that I think would work here.
Also, should now() be @time_now?
This looks good, @trevorsaunders! We'll talk in a few minutes but in the meantime I left a couple comments. |
Thanks Eric!
Trevor Saunders
Systems Administrator
917.562.7501
Prophet
160 5th Avenue FL 5 New York, NY 10010
Prophet Thinking<https://prophet.com/thinking>
From: Eric Davidson-Sawyer ***@***.***>
Date: Wednesday, June 2, 2021 at 12:42 PM
To: studentinsights/studentinsights ***@***.***>
Cc: Trevor Saunders ***@***.***>, Mention ***@***.***>
Subject: Re: [studentinsights/studentinsights] Merge branch with master (#2885)
This looks good, @trevorsaunders<https://urldefense.com/v3/__https:/github.com/trevorsaunders__;!!MhCpU-uPy0U!33yAiSOk3m2KJgh53nO5xV5fUXx0EZR21PCTVIubVhPI81fXUvJhLMENKEjpwu5F$>! We'll talk in a few minutes but in the meantime I left a couple comments.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/studentinsights/studentinsights/pull/2885*issuecomment-853183271__;Iw!!MhCpU-uPy0U!33yAiSOk3m2KJgh53nO5xV5fUXx0EZR21PCTVIubVhPI81fXUvJhLMENKFGatjjn$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AAIKESTUAUPXEPAEX4Y6Y5LTQZNNTANCNFSM456VSY7A__;!!MhCpU-uPy0U!33yAiSOk3m2KJgh53nO5xV5fUXx0EZR21PCTVIubVhPI81fXUvJhLMENKHSkR2gz$>.
|
Who is this PR for?
What problem does this PR fix?
What does this PR do?
Screenshot (if adding a client-side feature)
Checklists
Which features or pages does this PR touch?
Does this PR use tests to help verify we can deploy these changes quickly and confidently?