Skip to content
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

Conversation

GurnankCheema
Copy link
Contributor

@GurnankCheema GurnankCheema commented Jan 22, 2024

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

@GurnankCheema GurnankCheema marked this pull request as ready for review January 23, 2024 13:53
@@ -39,27 +39,6 @@ const completeSchema = joi.object({
'NO',
'NOT_KNOWN'
)('Select yes if any part of the incident captured on CCTV').alter(optionalForPartialValidation),

Copy link
Contributor Author

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
Copy link
Contributor Author

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 -->
Copy link
Contributor Author

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

@jimbali jimbali merged commit 4326a93 into main Jan 25, 2024
8 checks passed
@jimbali jimbali deleted the MAP-581-UoF-move-question-on-body-worn-cameras-to-uof-details-screen branch January 25, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants