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 CustomChangeChecksum interface #5649

Merged

Conversation

robinjhector
Copy link
Contributor

Impact

  • Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Adds a new optional interface: CustomChangeChecksum, that you can implement on any CustomChange.

Will let you configure how the checksum for your specific change will be calculated, if you're not happy with the default.

See discussion in #5478

Closes #5478

Things to be aware of

As previously stated, introduces the CustomChangeChecksum interface which you can add to your CustomChange implementation, in order to calculate your own checksum for your change. This will be a non-breaking change since the interface is completely optional.

The technical impact is that CustomChangeWrapper will look and see if the custom change implements the new interface, and then call the generateChecksum from that specific interface. If not, use the default one (via AbstractChange)

Things to worry about

N/A

Additional Context

N/A

Question: Who updates the documentation to include this new interface?

Adds a new optional interface: CustomChangeChecksum, that you can implement on any CustomChange.

Will let you configure how the checksum for your specific change will be calculated, if you're not happy with the default.

Closes liquibase#5478
Copy link
Contributor

@wwillard7800 wwillard7800 left a comment

Choose a reason for hiding this comment

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

This looks okay.

Copy link
Contributor

@MalloD12 MalloD12 left a comment

Choose a reason for hiding this comment

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

Approved.

Nothing to add here, this looks ok to me as well. Thanks you, @robinjhector for this PR!

@robinjhector
Copy link
Contributor Author

Hey! Is this ready to be merged? :)

@MalloD12
Copy link
Contributor

MalloD12 commented Mar 8, 2024

Hi @robinjhector,

We still need some other team members to review and test it. Hopefully, this will be happening soon.

Thank you for your patience,
Daniel.

@filipelautert filipelautert merged commit 14288cf into liquibase:master Mar 21, 2024
32 of 35 checks passed
@filipelautert filipelautert added this to the 1NEXT milestone Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Allow custom checksum calculations for CustomChange
5 participants