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

Rename teacher app sections #31039

Merged
merged 12 commits into from Oct 7, 2019
Merged

Rename teacher app sections #31039

merged 12 commits into from Oct 7, 2019

Conversation

clareconstantine
Copy link

@clareconstantine clareconstantine commented Oct 1, 2019

Description

Rename teacher application sections so the section numbers reflect the actual order in which they appear in the application, following up to this change made last year that flipped the Teaching Background and Choose Your Program sections.

Jira task

@clareconstantine clareconstantine changed the base branch from staging to principal-approval-2021 October 1, 2019 06:01
Copy link
Member

@breville breville left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

A lesson I learned when doing Hour of Code tutorials long ago was that if you have a lot of sections/levels that have both a name and an index in the name, get rid of the index and just refer to them by name, and then you never have to worry about changing the order.

That aside, this fix feels appropriate and good!

@clareconstantine
Copy link
Author

clareconstantine commented Oct 1, 2019

A lesson I learned when doing Hour of Code tutorials long ago was that if you have a lot of sections/levels that have both a name and an index in the name, get rid of the index and just refer to them by name, and then you never have to worry about changing the order.

I was considering that - do you think I should remove the indices? they are helpful until we need to change them :P

@breville
Copy link
Member

breville commented Oct 1, 2019

@clareconstantine If you were already considering it, then it sounds like it might be worth doing. It's not egregious in this case, but as a matter of principle I think it's a good one :)

@clareconstantine
Copy link
Author

@clareconstantine If you were already considering it, then it sounds like it might be worth doing. It's not egregious in this case, but as a matter of principle I think it's a good one :)

@breville I took out the indexes entirely!

@clareconstantine clareconstantine changed the base branch from principal-approval-2021 to staging October 5, 2019 00:25
@@ -49,7 +49,11 @@ def self.clean_multiline(string)
how_heard: 'How did you hear about this program?'
}
),
section_2_choose_your_program: {
teaching_background:
BASE_PAGE_LABELS[:section_2_your_school].slice(
Copy link
Member

Choose a reason for hiding this comment

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

Ah, so we have some mentions of section_X further upstream? It's fine to keep this change constrained but also interested to ponder how far we can take the numberless principle :)

Copy link
Author

Choose a reason for hiding this comment

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

I agree! I'm going to fix that as part of an upcoming change to simplify how our constants files are structured.

Comment on lines +11 to +15
about_you: 'About You',
teaching_background: 'Teaching Background',
choose_your_program: 'Choose Your Program',
professional_learning_program_requirements: 'Professional Learning Program Requirements',
additional_demographic_information: 'Additional Demographic Information and submission',
Copy link
Member

Choose a reason for hiding this comment

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

This feels good.. the ordering feels less hardcoded now, and more flexible to change order if we discover that we should!

@clareconstantine clareconstantine merged commit 660a1c2 into staging Oct 7, 2019
@clareconstantine clareconstantine deleted the section-2-3 branch October 7, 2019 21:02
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.

None yet

2 participants