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

CMG-91 upgrade to the new version of the hmpps-court-cases-release-dates-design package - to bring in mini-profile changes + change how status is populated #223

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

yasinmustafa
Copy link
Contributor

No description provided.

…tes-design package - to bring in mini-profile changes + change how status is populated
@yasinmustafa yasinmustafa requested a review from a team as a code owner March 12, 2024 10:40
lastName: prisoner.lastName,
prisonerNumber: prisoner.prisonerNumber,
dateOfBirth: prisoner.dateOfBirth,
status: prisoner.imprisonmentStatusDescription,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change just specific to adjustments? Why wouldn't the change be done within the mini profile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the mini-profile is designed to be generic and agnostic of the source, so it has a field called 'status' which was previously populated by 'status' from the prisonerDetails now that field is populated by imprisonmentStatusDescription as far as adjustments and other legacy services are concerned

So, it's been designed in a way that any service can use it and decide what they want to put in the 'status' field

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay. I thought it was designed such that the prisoner passed in was always a prisoner object from search API.

Copy link
Contributor

@ldlharper ldlharper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ldlharper ldlharper merged commit 0092135 into main Mar 12, 2024
4 checks passed
@ldlharper ldlharper deleted the CMG-91-mini-profile branch March 12, 2024 16:13
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