Skip to content
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

switch contexts argument to contextFilter (DAT-13423) #4375

Merged
merged 4 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Changeset contexts to match
contextFilter (String) Changeset contexts to match
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down Expand Up @@ -199,7 +199,7 @@ Optional Args:
password : { it.password },
changelogFile: "changelogs/h2/complete/simple.changelog.labels.context.xml",
labelFilter : "first",
contexts : "firstContext",
contextFilter: "firstContext",
showSummary : "verbose"
]

Expand Down Expand Up @@ -239,7 +239,7 @@ Optional Args:
password : { it.password },
changelogFile: "changelogs/h2/complete/summary-changelog.xml",
labelFilter : "testtable1",
contexts : "none",
contextFilter: "none",
showSummary : "summary"
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Changeset contexts to match
contextFilter (String) Changeset contexts to match
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down Expand Up @@ -77,7 +77,7 @@ Optional Args:
changelogFile: "changelogs/h2/complete/summary-changelog.xml",
count: "1",
labelFilter: "testtable4,tagit and !testtable2",
contexts: "none",
contextFilter: "none",
showSummary: "summary"
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Changeset contexts to match
contextFilter (String) Changeset contexts to match
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Changeset contexts to match
contextFilter (String) Changeset contexts to match
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Changeset contexts to match
contextFilter (String) Changeset contexts to match
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down Expand Up @@ -62,7 +62,7 @@ Optional Args:
changelogFile: "changelogs/h2/complete/summary-changelog.xml",
tag: "updateTag",
labelFilter: "testtable1,tagit",
contexts: "none,tagit",
contextFilter: "none,tagit",
showSummary: "summary"
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Optional Args:
Default: null
changeExecListenerPropertiesFile (String) Path to a properties file for the ChangeExecListenerClass
Default: null
contexts (String) Changeset contexts to match
contextFilter (String) Changeset contexts to match
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Required Args:
url (String) The JDBC database connection URL
OBFUSCATED
Optional Args:
contexts (String) Context string to use for filtering
contextFilter (String) Context string to use for filtering
Default: null
defaultCatalogName (String) The default catalog name to use for the database connection
Default: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public class UpdateCommandStep extends AbstractUpdateCommandStep implements Clea
.addAlias("labels")
.description("Changeset labels to match")
.build();
CONTEXTS_ARG = builder.argument("contexts", String.class)
CONTEXTS_ARG = builder.argument("contextFilter", String.class)
.addAlias("contexts")
.description("Changeset contexts to match")
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public class UpdateCountCommandStep extends AbstractUpdateCommandStep {
LABEL_FILTER_ARG = builder.argument("labelFilter", String.class)
.addAlias("labels")
.description("Changeset labels to match").build();
CONTEXTS_ARG = builder.argument("contexts", String.class)
CONTEXTS_ARG = builder.argument("contextFilter", String.class)
.addAlias("contexts")
.description("Changeset contexts to match").build();
COUNT_ARG = builder.argument("count", Integer.class).required()
.description("The number of changes in the changelog to deploy").build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public class UpdateCountSqlCommandStep extends UpdateCountCommandStep {
LABEL_FILTER_ARG = builder.argument("labelFilter", String.class)
.addAlias("labels")
.description("Changeset labels to match").build();
CONTEXTS_ARG = builder.argument("contexts", String.class)
CONTEXTS_ARG = builder.argument("contextFilter", String.class)
.addAlias("contexts")
.description("Changeset contexts to match").build();
COUNT_ARG = builder.argument("count", Integer.class).required()
.description("The number of changes to generate SQL for").build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public class UpdateSqlCommandStep extends AbstractUpdateCommandStep {
LABEL_FILTER_ARG = builder.argument("labelFilter", String.class)
.addAlias("labels")
.description("Changeset labels to match").build();
CONTEXTS_ARG = builder.argument("contexts", String.class)
CONTEXTS_ARG = builder.argument("contextFilter", String.class)
.addAlias("contexts")
.description("Changeset contexts to match").build();
OUTPUT_WRITER = builder.argument("outputWriter", Writer.class)
.hidden().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public class UpdateToTagCommandStep extends AbstractUpdateCommandStep {
LABEL_FILTER_ARG = builder.argument("labelFilter", String.class)
.addAlias("labels")
.description("Changeset labels to match").build();
CONTEXTS_ARG = builder.argument("contexts", String.class)
CONTEXTS_ARG = builder.argument("contextFilter", String.class)
.addAlias("contexts")
.description("Changeset contexts to match").build();
TAG_ARG = builder.argument("tag", String.class).required()
.description("The tag to update to").build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public class UpdateToTagSqlCommandStep extends UpdateToTagCommandStep {
LABEL_FILTER_ARG = builder.argument("labelFilter", String.class)
.addAlias("labels")
.description("Changeset labels to match").build();
CONTEXTS_ARG = builder.argument("contexts", String.class)
CONTEXTS_ARG = builder.argument("contextFilter", String.class)
.addAlias("contexts")
.description("Changeset contexts to match").build();
TAG_ARG = builder.argument("tag", String.class).required()
.description("The tag to generate SQL up to").build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public class DatabaseChangelogCommandStep extends AbstractHelperCommandStep impl
LABEL_FILTER_ARG = builder.argument("labelFilter", String.class)
.addAlias("labels")
.description("Label expression to use for filtering").build();
CONTEXTS_ARG = builder.argument("contexts", String.class)
CONTEXTS_ARG = builder.argument("contextFilter", String.class)
.addAlias("contexts")
.description("Context string to use for filtering").build();
CHANGELOG_PARAMETERS = builder.argument("changelogParameters", ChangeLogParameters.class)
.hidden()
Expand Down