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

Cohort year backend validation #220

Merged
merged 4 commits into from
Dec 31, 2021

Conversation

cjreed121
Copy link
Collaborator

Currently, the backend allows for cohort year to be changed even if they are not a student. There is also no backend check to make sure the year is within the valid range of 1824 <= cohort <= CURRENT_YEAR.

Now these are both checked for before and will return an error if a user tries to do one of these invalid actions.

@vcfxb vcfxb self-assigned this Dec 30, 2021
Copy link
Member

@vcfxb vcfxb left a comment

Choose a reason for hiding this comment

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

Looks good!

@vcfxb vcfxb merged commit 3bb848a into rcos:master Dec 31, 2021
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.

3 participants