Open victorlian opened 6 years ago
Dependency
The participants page might be removed for the users page. It may still be helpful for the admin page though. (Since general users should not be adding participants)
Before fixing this issue, a decision should be made on whether the participant page will remain in the admin view.
@softeng-701 suggested size of issue: small.
Hi Victor. A similar issue is if the Participants email address is not a valid internet address: This exception is only thrown when attempting to email the participant, i.e. clicking 'Send Invitation' for some study. This isn't to be confused with them entering a valid address but invalid email as this will bounce back (see #36) rather than out right failing to send.
@wilmol Hi Will, I was expecting #14 "Fix validation of email format" to fix this. But I guess they forgot to fix it for adding participants (probably because you have to login as admin) So yes, email validation should also be done here, I'll update the acceptance criteria.
@wilmol @victorlian small?
@softeng-701 yes I would still suggest small.
@softeng-701 yes
@victorlian @wilmol APPROVED!
Description When creating a new participant under admin mode, the form asks for "number of contributions" and "number of repositories". This is expected to be a positive integer. No form validation is implemented. This could cause: negative numbers, decimals and weird things to be entered and actually stored. There is also no upper/lower limit, which could make the server overflow the int (there is validation here to stop this being stored).
Screenshots of bug Highlighted in yellow: no form validation Circled in red: overflow causing error
How to reproduce
Acceptance criteria