optionally suppress SQL in reports (DAT-17940) #6499
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces new methods to suppress SQL and exceptions in the Liquibase reporting module. The main changes include adding methods to clear SQL statements and replace them with a placeholder, as well as methods to suppress exceptions by setting a placeholder message.
Key changes:
New Methods for Suppression:
liquibase-standard/src/main/java/liquibase/report/ChangesetInfo.java
: Added thesuppressSql
method to clear and replace generated SQL statements with "SQL Suppressed".liquibase-standard/src/main/java/liquibase/report/OperationInfo.java
: Added thesuppressException
method to replace exceptions with "Exception Suppressed".Implementations in Report Parameters:
liquibase-standard/src/main/java/liquibase/report/RollbackReportParameters.java
: ImplementedsuppressSql
andsuppressException
methods to call the respective suppression methods inChangesetInfo
andOperationInfo
.liquibase-standard/src/main/java/liquibase/report/UpdateReportParameters.java
: ImplementedsuppressSql
andsuppressException
methods to call the respective suppression methods inChangesetInfo
andOperationInfo
.Interface Update:
liquibase-standard/src/main/java/liquibase/report/UpdateRollbackReportParameters.java
: AddedsuppressSql
andsuppressException
methods to theUpdateRollbackReportParameters
interface.Impact
Description
Things to be aware of
Things to worry about
Additional Context