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

Add subjects to CSD workshops #14566

Merged
merged 1 commit into from Apr 21, 2017
Merged

Add subjects to CSD workshops #14566

merged 1 commit into from Apr 21, 2017

Conversation

aoby
Copy link
Contributor

@aoby aoby commented Apr 21, 2017

@@ -88,6 +88,12 @@ class Pd::Workshop < ActiveRecord::Base
SUBJECT_CSP_WORKSHOP_2 = 'Units 2 and 3: Processing data, Algorithms, and Programming',
SUBJECT_CSP_WORKSHOP_3 = 'Units 4 and 5: Big Data, Privacy, and Building Apps',
SUBJECT_CSP_WORKSHOP_4 = 'Units 5 and 6: Building Apps and AP Assessment Prep'
Copy link
Contributor

Choose a reason for hiding this comment

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

Not now - but sometime in the future we should think about how to internationalize this section. We're also wasting a ton of DB space with duplicate strings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could leverage ActiveRecord enums to normalize these strings in the DB. That would also open the door to i18n, since there would be a string lookup anyway.

@aoby aoby merged commit 58e86be into staging Apr 21, 2017
@aoby aoby deleted the pd-workshop-csd-subjects branch April 21, 2017 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants