Skip to content

Commit

Permalink
Snippet fixes from Flare bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-velonis1 committed Aug 9, 2024
1 parent e6b0b3a commit a6a8f4d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions Content/commands/quality-checks/subcommands/bulk-set.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/images/icon-pro-top.flsnp" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/images/icon-pro-top.flsnp" />
<h1><code>bulk-set</code>
</h1>
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/note/liquibase-pro-feature.flsnp" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/note/liquibase-pro-feature.flsnp" />
<p>The <code class="language-text">bulk-set</code> subcommand sets all qualifying quality checks to the same value. It helps you perform bulk management operations without running similar checks commands multiple times.</p>
<h2>Uses</h2>
<p>The <code class="language-text">bulk-set</code> command allows you to modify all qualifying quality checks at once using the <code class="language-text">--enable</code>, <code class="language-text">--disable</code>, and <code class="language-text">--severity</code> flags.</p>
<h3>Example Scenario</h3>
<p>For example, in a few commands, you can disable all your quality checks, set all severity exit codes to <code class="language-text">0</code>, and then pick a couple of them to enable and set the appropriate severity level. Let’s say you have 30 quality checks with different priorities. However, you want to reset them all to have a severity of <code class="language-text">0</code> and configure only a few to have a severity of <code class="language-text">4</code>, which you have set in your CI/CD tool as an exit code that stops your jobs. In this instance, you would run <code class="language-text">liquibase checks bulk-set --severity=0</code>. to set them all to 0, then you would update the couple you want to severity 4 for with <code class="language-text">liquibase checks customize --checkname=&lt;someCheckShortName1&gt;</code> and <code class="language-text">liquibase checks customize --checkname=&lt;someCheckShortName2&gt;</code>.</p>
<p class="note" MadCap:autonum="&lt;b&gt;Note: &lt;/b&gt;">You cannot enable the checks that do not have the default value. You need to copy and customize them first.</p>
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/note/checks-available.flsnp" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/note/checks-available.flsnp" />
<h2>Syntax</h2>
<p>You can run the <code class="language-text">bulk-set</code> command as follows:</p><pre xml:space="preserve"><code class="language-text">liquibase checks bulk-set --disable
liquibase checks bulk-set --enable
liquibase checks bulk-set --severity=[INFO|MINOR|MAJOR|CRITICAL|BLOCKER]
liquibase checks bulk-set --severity=[0|1|2|3|4]</code></pre>
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/note/checks-custom-checks-setting-file.flsnp" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/note/checks-custom-checks-setting-file.flsnp" />
<p>The command is interactive, so to skip the confirmation in automation, use the <code class="language-text">--force</code> flag with another <code class="language-text">bulk-set</code> flag.</p><pre xml:space="preserve"><code class="language-text">liquibase checks bulk-set --severity=INFO --force</code></pre>
<p>You can pass only one flag at a time. For example, to enable checks and set them to <code class="language-text">severity=MINOR</code>, run two <code class="language-text">bulk-set</code> commands, as follows.</p>
<p class="example" MadCap:autonum="&lt;b&gt;Example: &lt;/b&gt;"><code class="language-text">liquibase checks bulk-set --enable</code> <br /><code class="language-text">liquibase checks bulk-set --severity=MINOR</code><br /></p>
Expand All @@ -41,19 +41,19 @@ <h2>Parameters</h2>
</li>
</ul>
<div id="cli" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.cli]" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.cli]" />
</div>
<div id="flow" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.flow]" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.flow]" />
</div>
<div id="properties_file" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.properties-file]" MadCap:snippetVariables="parameters-global-command.command-case-camel:checks.bulkSet," />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.properties-file]" MadCap:snippetVariables="parameters-global-command.command-case-camel:checks.bulkSet," />
</div>
<div id="java_opts" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.java-opts]" MadCap:snippetVariables="parameters-global-command.command-case-camel:checks.bulkSet," />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.java-opts]" MadCap:snippetVariables="parameters-global-command.command-case-camel:checks.bulkSet," />
</div>
<div id="envar" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.envar]" MadCap:snippetVariables="parameters-global-command.command-case-envar:CHECKS_BULK_SET," />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-bulk-set.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.envar]" MadCap:snippetVariables="parameters-global-command.command-case-envar:CHECKS_BULK_SET," />
</div>
</div>
<MadCap:dropDown>
Expand Down
18 changes: 9 additions & 9 deletions Content/commands/quality-checks/subcommands/copy.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/images/icon-pro-top.flsnp" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/images/icon-pro-top.flsnp" />
<h1><code>copy</code>
</h1>
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/note/liquibase-pro-feature.flsnp" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/note/liquibase-pro-feature.flsnp" />
<p>The <code class="language-text">copy</code> subcommand copies a customizable check so that you can run the same check multiple times with different command arguments.</p>
<h2>Uses</h2>
<p>If you want to run the same check with different values, use <code class="language-text">copy</code> to make a new version with new values. If enabled, both checks will be run in the same execution.</p>
Expand All @@ -19,12 +19,12 @@ <h2>Uses</h2>
<li>SQL should not contain <code class="language-text">ALTER USER</code></li>
</ul>
<p><MadCap:variable name="General.Liquibase" /> does not allow you to copy static checks because they do not include customization options, and having the same check is redundant.</p>
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/note/checks-available.flsnp" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/note/checks-available.flsnp" />
<h2>Syntax</h2>
<p>The command is interactive, and you need to follow the CLI output messages to execute it:</p>
<ol>
<li>Run the command specifying your values:</li><pre xml:space="preserve"><code class="language-text">liquibase checks copy --check-name=TableColumnLimit</code></pre>
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/note/checks-custom-checks-setting-file.flsnp" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/note/checks-custom-checks-setting-file.flsnp" />
<li>Enter the name of the check copy using alphanumeric characters. Also, the name of the copy should differ from the original name.</li>
</ol>
<p>The command adds the copy of a check to the checks settings file. To execute the check, use the <MadCap:xref href="../run.htm">run</MadCap:xref> subcommand.</p>
Expand All @@ -43,19 +43,19 @@ <h2>Parameters</h2>
</li>
</ul>
<div id="cli" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.cli]" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.cli]" />
</div>
<div id="flow" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.flow]" />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.flow]" />
</div>
<div id="properties_file" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.properties-file]" MadCap:snippetVariables="parameters-global-command.command-case-camel:checks.copy," />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.properties-file]" MadCap:snippetVariables="parameters-global-command.command-case-camel:checks.copy," />
</div>
<div id="java_opts" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.java-opts]" MadCap:snippetVariables="parameters-global-command.command-case-camel:checks.copy," />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.java-opts]" MadCap:snippetVariables="parameters-global-command.command-case-camel:checks.copy," />
</div>
<div id="envar" class="js-tabcontent">
<MadCap:snippetBlock src="../../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.envar]" MadCap:snippetVariables="parameters-global-command.command-case-envar:CHECKS_COPY," />
<MadCap:snippetBlock src="../../../Z_Resources/Snippets/text/command-parameters-global-cmd/param-lists/command-checks-copy.flsnp" MadCap:conditionTagExpression="include[command-parameters-format.envar]" MadCap:snippetVariables="parameters-global-command.command-case-envar:CHECKS_COPY," />
</div>
</div>
<MadCap:dropDown>
Expand Down

0 comments on commit a6a8f4d

Please sign in to comment.