-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Do not write output files for computed columns when executing dbDoc. Fixes #1088 #3398
Conversation
Hi @rozenshteyn ! Thanks for the PR.
Could you help test it on Oracle? So maybe this would be a simpler approach to fix this? |
Not just for Oracle, but for any database type.
@filipelautert I tested your proposed fix with the Oracle db. While it does resolve the issue of failing to write out db documentation, it creates a new issue whereupon the index info is missing in the produced db documentation. Since you've mentioned that original issue affects not just the Oracle db, I went ahead and modified my fix by removing the restriction that it applies to the Oracle db only. |
@rozenshteyn thanks for testing out my approach! So all seems good, moving along. Thanks for the fix. |
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.
Working fine, also adds tests.
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.
This PR addresses a bug in the generation of database documentation where empty HTML files were created for Oracle computed columns.
- New unit tests added to validate fix.
- Automated functional tests passing; https://github.com/liquibase/liquibase-pro-tests/actions/runs/3473764788
- No additional testing required.
APPROVED
Impact
Description
A clear and concise description of the change being made.
Fix dbDoc fails to generate documents for an Oracle database when an index is created using a filter clause. Fixes #1088.
Skip writing an html file for Oracle database columns which have the computed flag set (i.e. the column was created based on the content of the filter clause of an index).
Things to be aware of
liquibase/liquibase-core/src/main/java/liquibase/snapshot/jvm/IndexSnapshotGenerator.java
Lines 296 to 297 in 9d6d144
Things to worry about
Additional Context
None at this time.