-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix(questionnaire): directors can update questionnaires with invalid information #601
Conversation
directors can now update questionnaires with missing country or agreements fields. This is done a temp fix for bh7 but should be removed later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comments for now; going to do an end to end test of this l8r tonight
= u.input :last_name, label: "Last Name" | ||
= f.input :email, input_html: { value: @questionnaire.user.try(:email) }, required: true, hint: 'Can be an existing user (without a questionnaire) or a new user. If this is a new user, they will receive a randomly-generated password that they must request a password reset for.' | ||
= f.input :phone | ||
= f.input :date_of_birth, start_year: Date.today.year - 18, end_year: Date.today.year - 90, order: [:month, :day, :year] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the - 18
and - 90
logic? Checking for minor?
We should refactor this logic for validation in 3.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that set the start year and the end year in the drop down to 1931 and 2003. I assume that is meant as basic minor checking but it is set as -5 for the user facing application so I will set it to that here as well
Niche feature with potential downsides downsides so this is being sidelined |
Closing in favor of 3.0 work; written down in Notion to go back to! |
added a option to disable validation for when directors submit questionnaires