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

Waitlist release route #316

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Conversation

samderanova
Copy link
Contributor

Resolves #307.

Changes

  • Set up new route at /admin/waitlist-release
  • Adjust sendgrid_handler.send_email overloads
  • Create new send waitlist email helper function
  • Unit tests

Note: While this is only accessible by directors at the moment, we will add a dedicated CHECKIN_LEAD role in #315.

- Set up new route at `/admin/waitlist-release`
- Adjust `sendgrid_handler.send_email` overloads
-  Create new send waitlist email helper function
- Unit tests

Co-authored-by: Taesung Hwang <[email protected]>
@samderanova samderanova linked an issue Jan 21, 2024 that may be closed by this pull request
@samderanova samderanova requested a review from taesungh January 21, 2024 10:17
Copy link
Contributor

Deploy preview for irvinehacks-site-2024 ready!

Name IrvineHacks 2024 Site
Preview Visit Preview
Commit 176c531

Copy link
Member

@taesungh taesungh left a comment

Choose a reason for hiding this comment

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

Tested on staging and confirmed email is sent and status changes from WAITLISTED to ACCEPTED.

Comment on lines +245 to +251
mock_mongodb_handler_retrieve_one.side_effect = [
DIRECTOR_IDENTITY,
{
"status": Decision.WAITLISTED,
"application_data": {"first_name": "Peter"},
},
]
Copy link
Member

Choose a reason for hiding this comment

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

Note for future: we should consider refactoring the primary functionality since this patching is getting a bit silly.

@samderanova samderanova merged commit 3ba1de1 into main Jan 21, 2024
4 checks passed
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.

[API] Add endpoint to promote a given waitlisted applicants
2 participants