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
Rename Academic Year Workshop subjects #36138
Changes from 2 commits
36e3be8
f171256
6b80112
7be7958
25f05c6
2aa3b53
7302b15
35439b3
e70ec70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ def up | |
csd_workshops.each do |csd_workshop| | ||
csd_workshop.update( | ||
subject: subject_name[:to], | ||
virtual: true, | ||
suppress_email: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we also set the workshop to virtual if it was one of Virtual 1/3/5/7? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds reasonable to me! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that I don't think adding |
||
) | ||
end | ||
|
@@ -59,6 +60,7 @@ def up | |
csp_workshops.each do |csp_workshop| | ||
csp_workshop.update( | ||
subject: subject_name[:to], | ||
virtual: true, | ||
suppress_email: true | ||
) | ||
end | ||
|
@@ -70,6 +72,8 @@ def up | |
# is being applied. However, we want to suppress email in | ||
# Academic Year Workshops this school year, so in the case of a problem | ||
# with subject naming we'll leave the email suppression as-is. | ||
# It also will rename subjects originally named "Virtual Workshop #" | ||
# to "Workshop 1: Unit 3", which we think is ok in this situation. | ||
def down | ||
CSD_SUBJECTS.each do |subject_name| | ||
csd_workshops = Pd::Workshop.where(course: CSD_COURSE, subject: subject_name[:to]). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will make it so all workshops go back to 'Workshop x: Unit y' format, right? Since those are first in the list? It's probably ok, but would be good to call out There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, will add comment. |
||
|
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.
this will always set to virtual right? I think we should only do that if it's one of virtual 1/3/5/7
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.
🤦 yes, thanks!