-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Respect required filters when using contexts (DAT-18843) #6418
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
Conversation
…spect flag when filtering changelog parameters. Global parameters such as environment variables do not get filtered, as there is no way to configure a label or context for these types of parameters.
…st. They won't in normal cli usage, but if you're using our java apis you may get into this situation.
…arameters` field which isn't filterable. This leaves global and local parameters untouched, and should enabled consistent usage.
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.
The code looks fine to me but I am pretty unfamiliar with this part of the code, so you might want to wait for another review.
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.
Feels like a new feature, not a bug.
liquibase-standard/src/main/java/liquibase/util/ExpressionMatcher.java
Outdated
Show resolved
Hide resolved
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.
It looks good to me too!
…s when using contexts
…for comparison not the provided context filter
… changeset as basis for comparison not the provided context filter" This reverts commit ebed636.
…and provided contexts to ensure both expressions are evaluated. Add test.
Impact
Description
Similar to labels, update context filters to respect the required
@
symbol. These filters can apply to both command arguments and changeset arguments.Things to be aware of
Things to worry about
Additional Context