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

Period enrollment code #704

Merged
merged 9 commits into from
Oct 12, 2015
Merged

Period enrollment code #704

merged 9 commits into from
Oct 12, 2015

Conversation

joemsak
Copy link
Contributor

@joemsak joemsak commented Oct 8, 2015

No description provided.

@joemsak joemsak changed the title Period enrollment code WIP: Period enrollment code Oct 8, 2015
@joemsak joemsak changed the title WIP: Period enrollment code Period enrollment code Oct 8, 2015
id: course.id.to_s,
name: course.profile.name,
periods: [{ id: zeroth_period.id.to_s, name: zeroth_period.name },
{ id: period.id.to_s, name: period.name }],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This and the similar tests above were updated because instead of adding in the period information to every single one, it seemed better to remove information from each test that was already tested the first time around, and leave only the part that's in question for the test.


reversible do |dir|
dir.up do
CourseMembership::Models::Period.where(enrollment_code: nil).find_each do |period|
Copy link
Member

Choose a reason for hiding this comment

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

thanks for find_each

Copy link
Contributor Author

Choose a reason for hiding this comment

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

chalk it up to habit :)

jpslav added a commit that referenced this pull request Oct 12, 2015
@jpslav jpslav merged commit fb2f771 into master Oct 12, 2015
@jpslav jpslav deleted the period-enrollment-code branch October 12, 2015 17:25
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.

2 participants