2023-06-19 Draft Form R Part B apparently uneditable

Date

Jun 19, 2023

Authors

@Reuben Roberts @john o

Status

Done

Summary

An unusual state meant that a trainee’s Form R Part B was apparently not editable, due to validation failing behind the scenes.

Impact

A trainee had a brief period (a few hours) during which they could not complete their Form R Part B

Non-technical Description

The validation for the Time out of Training (TOOT) field was working incorrectly when a draft form was reloaded, preventing the user from progressing to the next page of the form (and consequently its submission).


Trigger

  • Trainee reported a problem with editing and submitting their Form R Part B, having previously cleared the TOOT field before saving it as a draft.


Detection

  • Email received by TSS support.


Resolution

  • Bug fixed.


Timeline

All times in BST unless indicated

  • Jun 19, 2023: 09:08 - User email reported in the #self-services-support slack channel

  • Jun 19, 2023: 09:30 - Work-around suggested.

  • Jun 14, 2023: 12:08 - Fix applied to the code.

  • Jun 14, 2023: 13:03 - Redeployment of tis-trainee-ui completed.

Root Cause(s)

  • User clears a TOOT field, saves the draft, reopens the form and attempts to navigate to the next section of the form, at which point the validation fails silently, preventing the form action.

  • That’s it, really.


Action Items

Action Items

Owner

 

Action Items

Owner

 

Code fix

@john o

DONE

 

 

 


Lessons Learned

  • The validation of Form R Part B is in need of a review - this should be part of the refactoring to use the JSON form templating/builder.