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

Added induction schedule history #556

Merged
merged 3 commits into from
Jan 2, 2025
Merged

Added induction schedule history #556

merged 3 commits into from
Jan 2, 2025

Conversation

stevomcallister
Copy link
Contributor

No description provided.

Copy link
Contributor

@nathanrussell-moj-digital nathanrussell-moj-digital left a 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.",
Copy link
Contributor

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.

Copy link
Contributor Author

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))
Copy link
Contributor

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? 🤷‍♂️ )

Copy link
Contributor Author

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

@stevomcallister stevomcallister merged commit bbd709c into main Jan 2, 2025
11 checks passed
@stevomcallister stevomcallister deleted the RR-1193 branch January 2, 2025 15:46
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