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

CAS2-465: update local prison data #67

Merged
merged 2 commits into from
May 15, 2024
Merged

Conversation

Harriethw
Copy link
Contributor

@Harriethw Harriethw commented May 13, 2024

This PR makes two changes to ensure our users will be able to make applications for offenders in their prison.

  1. changes the secondary offender's nomsNumber - from Prison API seeded data here, retaining the old path temporarily until we have updated the UI e2e tests.
  2. changes the active agency ID of our local users to match our local offenders

Context

For CAS2, we make three main requests for prison data

  • Probation Offender Search - called with nomsNumber - locally, this is entirely stubbed in wiremock in this tools repo
  • Prison API - called with nomsNumber - locally, we talk to the prison-api container, so we rely on data seeded in that.
  • Delius -

@Harriethw Harriethw changed the title CAS2-465: change nomsNumber for our local secondary offender CAS2-465: update local prison data May 13, 2024
@Harriethw Harriethw requested a review from patrickjfl May 13, 2024 16:31
@Harriethw Harriethw force-pushed the cas-465-new-nomsnumber branch 2 times, most recently from 0e11c08 to 7767241 Compare May 14, 2024 09:29
Copy link

@patrickjfl patrickjfl left a 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?

@Harriethw Harriethw force-pushed the cas-465-new-nomsnumber branch from 7767241 to 9c691e8 Compare May 14, 2024 15:26
@Harriethw
Copy link
Contributor Author

So is the idea that we can remove A5671YZ entirely once ministryofjustice/hmpps-community-accommodation-tier-2-ui#700 is merged?

yep exactly 👍

Harriethw added 2 commits May 14, 2024 17:35
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.
Copy link
Contributor

@tahb tahb left a comment

Choose a reason for hiding this comment

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

🚀

@Harriethw Harriethw merged commit 079b80f into main May 15, 2024
1 check passed
@davidatkinsuk davidatkinsuk deleted the cas-465-new-nomsnumber branch September 27, 2024 10:38
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.

3 participants