fix: canTermEnrollmentChange#1926
Conversation
KevinWu098
left a comment
There was a problem hiding this comment.
Looks solid. Two questions on correctness that would be good for you to confirm
- see below
- is drop deadline also 5 PM on friday for all summer sessions?
After looking at the summer sessions FAQ, there is no specific indicator that the drop deadline is 5PM, so for now I adjusted it so that for all summer closing enrollment times are EOD. I also adjusted it so that for the shorter terms (summer sessions 1 and 2), the drop deadline is Week 1 Friday. Additionally, the app isn’t globally set to PST. Some features do explicitly use America/Los_Angeles(for example the mailer that sends notifications for changes in course enrollment), but the main date logic still follows the runtime’s local timezone. So for any user in EST, a regular quarter's cutoff would look like Friday 5 PM EST. |
KevinWu098
left a comment
There was a problem hiding this comment.
Thanks for looking into it. For summer, EOD seems like a reasonable choice. For timezones, however, what I meant was that it would be... incorrect for someone on, say, the east coast to no longer be able to subscribe to notifications at 5 PM local time, which is only 2 PM PST.
Hence, it probably makes sense to figure out how to pin it to 5 PM PST! (and, as a good completeness thing, scan if there are any related areas which would benefit from also being pinned to PST without regressing behavior)
Summary
canTermEnrollmentChangeto close enrollment at Friday 5:00PMtermHelpers.test.tsTest Plan
pnpm testshould succeedIssues
Closes #1818