-
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
'contextFilter' is not allowed to appear in element 'includeAll', in contrast to the documentation #4479
Comments
Hello @mattjudge , thank you for letting us know about this issue. |
Thanks for confirming the issue! Since labels can be specified in includeAll tags (although I haven't tested this), it would seem to make sense to allow contexts to be specified as well. |
Hi @mattjudge, Looking at the changelog provided in the "steps to reproduce" it shows you are using Thanks, |
Hi there,
Testing a debugging liquibase here is very hard as IMHO the documentation and the logging needs some improvement:
So I would would add something like this at the beginning that would be very helpful:
Especially your documentation obviously only explains how to pass context config to the liquibase tool.
If the only thing the developer sees is that all SQLs are executed no matter what you configure in changelog AND the application properties of the underlying framework, this is very frustrating as you have no clue how to narrow down the problem.
But in https://forum.liquibase.org/t/liquibase-contexts-is-not-working/7688 someone says this:
So your users are left puzzled (should the documentation say
When using this feature in YAML, you will discover that
I am an experienced developer and quickly figured out that I have to quote the value as workaround but your documentation could be much more helpful and prevent your users from stepping into one pitfall after the next.
Developers will love such feedback that saves them from headaches :) I hope my feedback will help to improve liquibase in the future. |
Search first
Description
The docs for includeAll state that
contextFilter
can be included inside anincludeAll
tag, with the example of<includeAll path="files" contextFilter="DEV"/>
, but following this results in the errorSteps To Reproduce
Enter the following into your changelogfile.xml
Expected/Desired Behavior
The behaviour described in the docs.
Liquibase Version
4.23.0, 4.21.1
Database Vendor & Version
PostgreSQL
Liquibase Integration
CLI
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
WSL
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: