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
Write changelog only if changes exist #5164
Write changelog only if changes exist #5164
Conversation
Signed-off-by: Brachi Packter <brachipackter@gmail.com>
…hi-wernick/liquibase into brachi-wernick-print-changes-only-if-exist
… no difference to highlight.
Created DAT-16261 to fix failing functional tests. |
hi @brachi-wernick Thanks for adding this. Even when we generate a new diff changelog with no differences, we're still receiving this message.
I think it would be nice to trigger a warning message in such scenarios, as
CC: @MalloD12 |
@obovsunivskyii @MalloD12
If you check the logs you will see some information about empty changes:
I Think better to change the log
to be as the warning you suggested
And this will be in the scope of class Let me know if it sounds good and if so I'll commit it. |
I'm same person as brachi-wernick, this is just my git work user (by mistake, forgot to switch) |
Hi @brachipa, I'm fine with it, but what do you guys think if we lightly change that message to something like:
How does it sound to you? cc: @obovsunivskyii Thanks, |
I'm okay with these changes @MalloD12 @brachi-wernick thank you |
fix message as discussed Signed-off-by: Brachi Packter <brachipackter@gmail.com>
Looks good to me. Functional tests have been fixed in https://github.com/liquibase/liquibase-pro-tests/pull/1176. Thanks, @brachi-wernick, for your contribution! |
@filipelautert This shouldn't cause any breaking change for the customers, right? |
@suryaaki2 Right! This PR skips the creation of a file that would just have xml headers on it. |
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.
Approved.
Code changes looks good to me, and failing tests have been fixed in this PR. Thank you, guys (@brachi-wernick - @rberezen)!!
@filipelautert I think we can already merge this one since @rberezen has already created the PR to fix the failing functional tests, and also merge Ruslan's PR. Thanks, |
Impact
x
] Bug fix (non-breaking change which fixes expected existing functionality)Description
Write changelog only if changes exist.
When running
diffChangeLog
and there are no changes at all, it still generates an empty changelog file.It makes a lot of garbage file that needed to be removed manually.