-
Notifications
You must be signed in to change notification settings - Fork 174
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
[Candidate_parameters] Improve front-end validation for entering Consent data #4034
[Candidate_parameters] Improve front-end validation for entering Consent data #4034
Conversation
As discussed in today's LORIS meeting, weighing in re: proposed consent changes. This is great, just have a few minor adjustments to request.
|
Changes made :
edit: latest workflow updated in PR description |
withdrawalRequired[i] = false; | ||
// If answer to consent is "no", require date of consent | ||
if (this.state.formData[consent] === "no") { | ||
dateRequired[i] = true; |
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.
should this have a default value set to it as well?
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.
may as well!
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.
@davidblader done
08a0106
to
b386b5f
Compare
@zaliqarosli just tested this, minor changes needed.
|
PR description updated to address Rida's comments above. Issue created to follow up on solving how to clear consent |
d648b23
to
e133af4
Compare
@zaliqarosli still not working |
@zaliqarosli new rules need to be applied on the backend through a release script |
7011aab
to
b83f140
Compare
@ridz1208 please re-review! |
@ridz1208 done. please re-review |
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.
EVERYTHING ELSE LOOKS GOOD
travis add disabled withdraw revamp logic travis add clarity travis ridas request cleanup cleanup backend validation dont give users the option to throw an error travis travis travis travis travis travis validation for dirty data cleanup add cleanup script lint php travis travis change DB
5b3519d
to
6a0876c
Compare
…ent data (aces#4034) This makes entering consent data more rigorous. Implements the following workflow for data entry: - Date of consent being given is required for both answers to consent "yes" or "no" - Date of withdrawal of consent required if answer changes from "yes" to "no" - Consent status "yes" or "no" cannot be changed to an empty one - Replaces confirmation message to swal - Adds script to check errors in data
Brief summary of changes
This PR makes entering consent data more rigorous. Going forward, this PR implements the following workflow for data entry:
To test this change...
Note for reviewing: While there are plenty of pre-ES6 syntax, conversion of vars to lets/consts does not belong in this PR. All new code highlighted in green should already conform to ES6 standards.