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

APS-1676: Day Summary Endpoint #2745

Merged
merged 3 commits into from
Jan 2, 2025
Merged

Conversation

RobBoothMOJ
Copy link
Contributor

@RobBoothMOJ RobBoothMOJ commented Dec 23, 2024

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 :

  • Populate capacity information (and date fields)
  • Populate booking information with filtering and sorting implemented
  • Populate out of service bed information

Release Type still to be determined

Copy link
Contributor

@davidatkinsuk davidatkinsuk left a 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

@RobBoothMOJ RobBoothMOJ force-pushed the feature/APS-1676_day_summary branch 3 times, most recently from 8703fe6 to b19672c Compare December 28, 2024 10:34
@RobBoothMOJ RobBoothMOJ marked this pull request as ready for review December 28, 2024 10:44
@RobBoothMOJ RobBoothMOJ force-pushed the feature/APS-1676_day_summary branch 4 times, most recently from 44e57da to 4a26c8b Compare December 30, 2024 09:46
@RobBoothMOJ RobBoothMOJ force-pushed the feature/APS-1676_day_summary branch 2 times, most recently from 90d302e to 80c3627 Compare December 31, 2024 08:47
Copy link
Contributor

@davidatkinsuk davidatkinsuk left a 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
@RobBoothMOJ RobBoothMOJ force-pushed the feature/APS-1676_day_summary branch from 80c3627 to f263939 Compare January 2, 2025 11:02
@RobBoothMOJ RobBoothMOJ enabled auto-merge January 2, 2025 11:05
@RobBoothMOJ RobBoothMOJ merged commit 9d86dfa into main Jan 2, 2025
8 checks passed
@RobBoothMOJ RobBoothMOJ deleted the feature/APS-1676_day_summary branch January 2, 2025 11:12
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