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

updated existing method #518

Merged
merged 2 commits into from
Nov 15, 2024
Merged

updated existing method #518

merged 2 commits into from
Nov 15, 2024

Conversation

stevomcallister
Copy link
Contributor

This looks weird but...

Sometimes the hmppsId will be a crn and sometimes it will be a noms number.

If the crn exists then it will be the crn but if no crn exists then it will be a noms number.

However... it is possible for the hmppsid to change without the downstream service being aware. So they should always essentially verify that the hmppsId is correct - that's what this api method does. The end client is essentially verifying that the hmppsId is the one they have and if not it will give them the correct one.

hope that makes sense.

garethmdavies
garethmdavies previously approved these changes Nov 15, 2024
Copy link
Contributor

@garethmdavies garethmdavies left a comment

Choose a reason for hiding this comment

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

LGTM

@stevomcallister stevomcallister merged commit 054fa29 into main Nov 15, 2024
11 checks passed
@stevomcallister stevomcallister deleted the getHmppsIdFromHmppsId branch November 15, 2024 14:20
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