ulnagar / Constellation

0 stars 0 forks source link

Parent absence reason validation errors are not passed back to the user #71

Closed ulnagar closed 8 months ago

ulnagar commented 9 months ago

When explaining an absence via the Parent Portal, parents must enter a comment of five characters or more. If they do not, a validation error is returned to the Server Controller, but never passed to the client application. Parents are not presented with an error, but the absence is never explained.

Set up client side validation to ensure that the requirements are met before submitting to the server, or find a way to pass errors back through the Server Controller to the client application.

ulnagar commented 8 months ago

Updated Parent Portal Server and Client projects to use ApiResult object where applicable and display errors to user.

Tested without issue. Scheduled to be released to production with R1.14.1