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

Make record-arrival endpoint idempotent #2467

Merged

Conversation

gregkhawkins
Copy link
Contributor

Update cas1SpaceBookingService.recordArrivalForBooking to return a success outcome if the required cas1NewArrival.arrivalDateTime matches the value already set on existingCas1SpaceBooking.actualArrivalDateTime. If a value is already set and it doesn’t match the required value, return a conflict error as per the current behaviour.

@gregkhawkins gregkhawkins force-pushed the feature/APS-1503__make_record_arrival_idempotent branch from 1b9a879 to eda0419 Compare November 8, 2024 12:31
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.

Looking good, just a few comments from me 👍

@gregkhawkins gregkhawkins force-pushed the feature/APS-1503__make_record_arrival_idempotent branch 3 times, most recently from 1f7a5d7 to 857b4d1 Compare November 8, 2024 13:49
@gregkhawkins gregkhawkins force-pushed the feature/APS-1503__make_record_arrival_idempotent branch from 857b4d1 to 98ca392 Compare November 8, 2024 14:17
@gregkhawkins gregkhawkins merged commit c02287c into main Nov 8, 2024
8 checks passed
@gregkhawkins gregkhawkins deleted the feature/APS-1503__make_record_arrival_idempotent branch November 8, 2024 14:51
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