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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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.

This PR also adds a nullable characteristics and previousCharacteristics property to the domain event in preparation for recording space booking changes to characteristics

@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
Moved private members to the bottom of the class for consistency
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 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!

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