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 liquibase.snapshot.ResultSetCache an extensible class. #2087
Conversation
This is useful in case an extension has to override liquibase.snapshot.jvm.UniqueConstraintSnapshotGenerator#listConstraints.
@r2liquibase can you please take a look at this? It will help fixing liquibase/liquibase-hanadb#69. |
HI @breglerj Thanks for creating this issue. A member of the Liquibase team will take a look at your contribution and may suggest:
The PR will be prioritized according to our internal development and testing capacity. We’ll let you know when it’s ready to move to the next step or if any changes are needed. |
Part of this fix may belong in the hanadb extension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review and test results:
I've been hoping to make some significant changes to this API for a while, and so the methods were not extensible because I wasn't sure how compatible we'll continue to be long-term as we do things like support nosql databases etc.
But, that is likely a while from now still that we'll get to that and we will already have to deal with compatibility issues at this point, so no use blocking people from extending things as they need now.
Things to be aware of:
- Doesn't change behavior, just makes methods extendable
Things to worry about:
- Nothing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Fix changes several snapshot classes to
protected
to allow extensibility. - Fix does not impact functionality of current implementations leveraging these classes.
- No additional testing required.
APPROVED
This is useful in case an extension has to override
liquibase.snapshot.jvm.UniqueConstraintSnapshotGenerator#listConstraints.
Environment
Liquibase Version:
4.5.0
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
CLI
Liquibase Extension(s) & Version:
liquibase-hanadb
Database Vendor & Version:
SAP HANA
Operating System Type & Version:
Pull Request Type
Description
A clear and concise description of the issue being addressed. Additional guidance here.
see liquibase/liquibase-hanadb#69
Steps To Reproduce
List the steps to reproduce the behavior.
see liquibase/liquibase-hanadb#69
Actual Behavior
A clear and concise description of what happens in the software before this pull request.
see liquibase/liquibase-hanadb#69
Expected/Desired Behavior
A clear and concise description of what happens in the software after this pull request.
Screenshots (if appropriate)
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
Fast Track PR Acceptance Checklist:
Need Help?
Come chat with us on our discord channel