-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added induction schedule history #556
Conversation
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.
LGTM, but a couple of minor suggestions if you feel they add anything
@@ -32,7 +33,7 @@ class PLPController( | |||
) { | |||
@GetMapping("{hmppsId}/plp-induction-schedule") | |||
@Operation( | |||
summary = "Returns plp the induction schedule associated with a person.", | |||
summary = "Returns plp the current induction schedule associated with a person.", |
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.
Minor, but on this and the next method, the summary
tag reads weirdly.
Wonder if it should be something like:
Returns the current PLP Induction Schedule associated with a person.
,
and
Returns the PLP Induction Schedule history associated with a person.
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.
ah yes - updated
if (response.hasError(UpstreamApiError.Type.ENTITY_NOT_FOUND)) { | ||
throw EntityNotFoundException("Could not find person with id: $hmppsId") | ||
} | ||
auditService.createEvent("GET_INDUCTION_SCHEDULE", mapOf("hmppsId" to hmppsId)) |
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.
I'm not sure how these events work / how strongly typed there are etc; but should the event name be plural perhaps? (or maybe it doesnt matter so much? 🤷♂️ )
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.
it's not typed at all, nor is there any guidance. I was thinking of keeping it simple with only considering INDUCTION or REVIEW schedules but I've updated this one to have _HISTORY
67987ee
No description provided.