-
Notifications
You must be signed in to change notification settings - Fork 5
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
Map 581 move question on body worn cameras to details screen #672
Map 581 move question on body worn cameras to details screen #672
Conversation
@@ -39,27 +39,6 @@ const completeSchema = joi.object({ | |||
'NO', | |||
'NOT_KNOWN' | |||
)('Select yes if any part of the incident captured on CCTV').alter(optionalForPartialValidation), | |||
|
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.
this is input validation and has been moved to /useOfForceDetailsForm. ts
@@ -7,6 +7,8 @@ export type IncidentDetails = { | |||
|
|||
export type UseOfForceDetails = { | |||
positiveCommunication: boolean | |||
bodyWornCamera?: string |
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.
temporarily made optional
@@ -195,105 +193,6 @@ <h1 class="govuk-heading-xl mainHeading">{{ pageTitle }} </h1> | |||
}) | |||
}} | |||
</div> | |||
|
|||
<!-- Q4 --> |
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.
this has moved to the useOfForceDetails.html
MAP-581
Move the body-camera question out of the 'Evidence' page and put in 'Use of force details' page.
The code in the PR will put the body-worn camera responses for any new reports in the correct place of the DB blob. However old reports will still have the data within Evidence section of blob. The long term goal is to run a DB migration to shift the data and MAP-642 has been raised to do that work.
In the meantime I have implemented logic in the 4th commit of this PR to get the question response irrespective of which section it is in the blob.
And while I have annotated the question as optional, it is mandatory, and was done just to accommodate the fact that it could be in either evidence or details sections. And once Map-642 has been done, we can rip out the changes in the 4th commit