-
Notifications
You must be signed in to change notification settings - Fork 0
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
CAS2-465: update local prison data #67
Conversation
0e11c08
to
7767241
Compare
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.
Looks ok to me. So is the idea that we can remove A5671YZ entirely once the UI PR is merged?
7767241
to
9c691e8
Compare
yep exactly 👍 |
wiremock/mappings/noms_number_A5671YZ/ProbationOffenderSearchApi_SearchByNomsNumber.json
Outdated
Show resolved
Hide resolved
This was previously added to provide a route for an offender with no Oasys locally, but the nomsNumber did not have a corresponding entry in the Prison API so we were not able to retrieve prison information for the person, which would cause our checks on prison codes to fail. This links it with seeded data in the Prison API [1] I'm leaving in the old nomsNumber for now in order not to break the UI e2e tests for CAS2. [1] https://github.com/ministryofjustice/prison-api/blob/37b7392bc69960f159de27e72aee19a9ae7e6ad5/src/main/resources/db/migration/data/R__1_15__OFFENDERS.sql#L26
this matches our local offender data so that we can create applications for them and view them in our prison dashboard.
9c691e8
to
2d56343
Compare
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 PR makes two changes to ensure our users will be able to make applications for offenders in their prison.
Context
For CAS2, we make three main requests for prison data
nomsNumber
- locally, this is entirely stubbed in wiremock in this tools reponomsNumber
- locally, we talk to theprison-api
container, so we rely on data seeded in that.approved-premises-and-delius
, the repo created for us to get Oasys reports - called withcrn
. I think we are mocking some of these endpoints via theApAndOasys
files in themappings
folder.ApDeliusContext
- called withcrn
- I'm not entirely sure how this works, but we are mocking some of these endpoints via theApDeliusContext
files in themappings
folder.