Skip to content
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

796 format accepted mailers grad #813

Merged
merged 4 commits into from
Aug 2, 2024

Conversation

jlandiseigsti
Copy link
Contributor

closes #796

Updates the text of the mailers, and changes the logic so that the grad school has format_approved and format_rejected emails. Also updates tests and correct some test holes that were there.

Format-review accept and reject mailers had logic to not send unless the partner was sset or honors.
This change adds graduate school to the list.
Updates the text of the graduate school mailers and the tests accordingly.
Copy link
Contributor

@ajkiessl ajkiessl left a comment

Choose a reason for hiding this comment

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

Just a couple small things. Otherwise this looks good. Thanks!

db/schema.rb Outdated
@@ -301,6 +301,7 @@
t.string "lionpath_semester"
t.string "academic_program"
t.string "degree_checkout_status"
t.datetime "author_release_warning_sent_at"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to be safe, let's remove this.

context "when the current partner is neither 'sset' or 'honors'" do
it "raises an exception" do
skip 'not sset nor honors' if current_partner.sset? || current_partner.honors?
context "when the current partner does not send format_review emails" do
Copy link
Contributor

Choose a reason for hiding this comment

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

This will need the milsch: true tag to make it run in CI.

end
end

context "when the current partner is neither 'sset' nor 'honors'" do
context "when the current partner should not send" do
Copy link
Contributor

Choose a reason for hiding this comment

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

This will need the milsch: true tag aswell

796 - updates from code review
796 - updates from code review
796 - updates from code review
796 - updates from code review
796 - updates from code review
796 - updates from code review
@jlandiseigsti jlandiseigsti requested a review from ajkiessl August 2, 2024 14:43
Copy link
Contributor

@ajkiessl ajkiessl left a comment

Choose a reason for hiding this comment

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

Lgtm!

@jlandiseigsti jlandiseigsti merged commit 4e10702 into main Aug 2, 2024
1 check passed
@jlandiseigsti jlandiseigsti deleted the 796-format-accepted-mailers-grad branch August 2, 2024 18:32
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.

Update Grad School Auto Mailers
2 participants