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

Add diff when updating room to log output. #2782

Merged

Conversation

danhumphreys-moj
Copy link
Contributor

@danhumphreys-moj danhumphreys-moj commented Jan 9, 2025

For the seed room characteristics from Excel site survey data, output the difference in room characteristics between the existing room entity and the updated room entity usinng the JaVers library. This is already done when a premise is updated via the equivalent job.

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, very neat!

@@ -161,11 +169,39 @@ class Cas1SeedRoomsFromSiteSurveyXlsxJob(
log.info("Created new room with code ${room.roomCode} and name ${room.roomName} in premise ${premises.name}.")
}

private data class ApprovedPremisesRoomForComparison(
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@danhumphreys-moj danhumphreys-moj force-pushed the chore/add-javers-comparison-to-excel-seed-rooms-job branch from c5f25e1 to 663df5b Compare January 10, 2025 09:34
@danhumphreys-moj danhumphreys-moj merged commit 048e045 into main Jan 10, 2025
7 checks passed
@danhumphreys-moj danhumphreys-moj deleted the chore/add-javers-comparison-to-excel-seed-rooms-job branch January 10, 2025 09:43
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