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

Remove TeacherCon from cohort view #26761

Merged
merged 8 commits into from Jan 28, 2019
Merged

Remove TeacherCon from cohort view #26761

merged 8 commits into from Jan 28, 2019

Conversation

hacodeorg
Copy link
Contributor

How test:
bundle exec rails test test/controllers/api/v1/pd/application/* test/models/pd/application/* test/controllers/pd/application/*

Copy link

@clareconstantine clareconstantine left a comment

Choose a reason for hiding this comment

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

one comment about naming, but otherwise this looks good to me!

def tc_registration
# object is either an application (with possibly a linked TC registration), or itself a TC registration
object.try(:pd_teachercon1819_registration) || object
object.try(FIT_WEEKEND_REGISTRATION_FACTORY).try(:form_data_hash)

Choose a reason for hiding this comment

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

I think we should create a new constant, since it doesn't make sense to be referring to a factory here

@hacodeorg hacodeorg merged commit 91ddd80 into staging Jan 28, 2019
@hacodeorg hacodeorg deleted the ha/RemoveTeacherCon2 branch February 5, 2019 21:24
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

3 participants