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-1730 capture previous values on booking amend domain event #2727

Conversation

davidatkinsuk
Copy link
Contributor

@davidatkinsuk davidatkinsuk commented Dec 18, 2024

This PR updates the CAS1 booking changed domain event to capture the previous date values, if changed. It populates these values for booking changes.

@davidatkinsuk davidatkinsuk force-pushed the feature/aps-1730-capture-previous-values-on-booking-amend-domain-event branch 3 times, most recently from f9d7ef4 to 6a01c56 Compare December 23, 2024 09:54
@davidatkinsuk davidatkinsuk changed the title Feature/aps 1730 capture previous values on booking amend domain event APS-1730 capture previous values on booking amend domain event Dec 23, 2024
@davidatkinsuk davidatkinsuk force-pushed the feature/aps-1730-capture-previous-values-on-booking-amend-domain-event branch 2 times, most recently from b80b564 to a9c13c0 Compare January 3, 2025 09:32
@davidatkinsuk davidatkinsuk marked this pull request as ready for review January 3, 2025 09:44
@davidatkinsuk davidatkinsuk force-pushed the feature/aps-1730-capture-previous-values-on-booking-amend-domain-event branch from a9c13c0 to 6d77f1b Compare January 3, 2025 09:45
@Transactional
fun createDateChange(
booking: BookingEntity,
user: UserEntity,
newArrivalDate: LocalDate?,
newDepartureDate: LocalDate?,
) = validated {
) = validatedCasResult {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

Copy link
Contributor

@daveawc daveawc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Moved private members to the bottom of the class for consistency
@davidatkinsuk davidatkinsuk force-pushed the feature/aps-1730-capture-previous-values-on-booking-amend-domain-event branch 2 times, most recently from af62c1e to 6a7ce73 Compare January 6, 2025 16:33
This commit updates the CAS1 booking changed domain event to capture the previous date values, if changed. It populates these values for booking changes.
@davidatkinsuk davidatkinsuk force-pushed the feature/aps-1730-capture-previous-values-on-booking-amend-domain-event branch from 6a7ce73 to 08082aa Compare January 6, 2025 16:34
@davidatkinsuk davidatkinsuk merged commit 63e2a97 into main Jan 7, 2025
8 checks passed
@davidatkinsuk davidatkinsuk deleted the feature/aps-1730-capture-previous-values-on-booking-amend-domain-event branch January 7, 2025 08:34
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