-
Notifications
You must be signed in to change notification settings - Fork 3
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
APS-1676: Day Summary Endpoint #2745
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.
Hi @RobBoothMOJ , i've reviewed the 'main' code but haven't looked at tests as i know that's work in progress. Looking good, i think the only proposal that needs addressing is dealing with offline applications
...n/uk/gov/justice/digital/hmpps/approvedpremisesapi/controller/cas1/Cas1PremisesController.kt
Outdated
Show resolved
Hide resolved
...gov/justice/digital/hmpps/approvedpremisesapi/transformer/cas1/Cas1PremisesDayTransformer.kt
Outdated
Show resolved
Hide resolved
...n/uk/gov/justice/digital/hmpps/approvedpremisesapi/controller/cas1/Cas1PremisesController.kt
Outdated
Show resolved
Hide resolved
...lin/uk/gov/justice/digital/hmpps/approvedpremisesapi/jpa/entity/Cas1OutOfServiceBedEntity.kt
Show resolved
Hide resolved
...kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/jpa/entity/Cas1SpaceBookingEntity.kt
Outdated
Show resolved
Hide resolved
.../justice/digital/hmpps/approvedpremisesapi/service/cas1/Cas1OutOfServiceBedSummaryService.kt
Outdated
Show resolved
Hide resolved
.../digital/hmpps/approvedpremisesapi/transformer/cas1/Cas1SpaceBookingDaySummaryTransformer.kt
Outdated
Show resolved
Hide resolved
.../digital/hmpps/approvedpremisesapi/transformer/cas1/Cas1SpaceBookingDaySummaryTransformer.kt
Outdated
Show resolved
Hide resolved
8703fe6
to
b19672c
Compare
44e57da
to
4a26c8b
Compare
...gov/justice/digital/hmpps/approvedpremisesapi/transformer/cas1/Cas1PremisesDayTransformer.kt
Outdated
Show resolved
Hide resolved
90d302e
to
80c3627
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.
LGTM 👍
Implement logic in controller for getDaySummary Populate the date fields and return the capacity information
A new query in the SpaceBookingEntity retrieves the matching space bookings for the given premises and day, filtering and ordering as specified.
Amended existing findOutOfServiceBedIds query, renamed to findOutOfServiceBedIdForDates to fetch by optionally provided date Incorporate oosbeds into the premise day summary
80c3627
to
f263939
Compare
Implement Day Summary Endpoint.
GET /cas1/premises/{premiseId}/day-summary/{date}
Given a premises id and a specific date, the endpoint returns information on capacity, bookings and out of service beds for the given date.
3 Separate commits covering 3 parts of functionality :
Release Type still to be determined