diff --git a/Content/commands/quality-checks/custom-policy-checks/checks-python-package.htm b/Content/commands/quality-checks/custom-policy-checks/checks-python-package.htm index 141ae2495..59ae52b37 100644 --- a/Content/commands/quality-checks/custom-policy-checks/checks-python-package.htm +++ b/Content/commands/quality-checks/custom-policy-checks/checks-python-package.htm @@ -54,21 +54,13 @@

Install the Python package step-by-step

if lb.is_table(obj): # function provided from liquibase utilities status.fired = True # indicates the custom check has been triggered status.message = No tables allowed! # set the message of the custom check, which liquibase will return - sys.exit(1) # exit from the check

You have successfully activated the Checks Python package. Next you will go over usage of our helper scripts.

+ sys.exit(1) # exit from the check

You have successfully activated the Checks Python package.

-

Install the Python package and import tools step-by-step

-

This option allows you to enhance your checks further with usage of specific items within the Python package.

-
    -
  1. In your virtual environment, install the package by running pip install liquibase-checks-python in the CLI.
  2. -
  3. Navigate to the location where you import liquibase_utilities and replace import liquibase_utilities with from liquibase_checks_python import liquibase_utilities in your Python script.
    Now the Python package that includes the helper scripts is activated.
  4. -
  5. Next you will call on a specific helper script.
    In this example we will run logger = liquibase_utilities.get_logger
  6. -
  7. When the check runs it will retrieve any content it finds based on the criteria you asked for and display it in the CLI.
  8. -
-

Access helper scripts

-

Step-by-step

-
    +

    Access helper scripts

    +

    Step-by-step

    +
    1. Navigate to your Custom Policy Check Python script that you want to implement helper scripts in.
    2. -
    3. Next you will include a specific helper script function in your Custom Policy Check Python script.
      In this example we will include logger = liquibase_utilities.get_logger to pull the log.
      • import sys # useful for indicating a check has been triggered +
      • Next you will include a specific helper script function in your Custom Policy Check Python script.
        In this example we will include logger = liquibase_utilities.get_logger to pull the log.
        • import sys # useful for indicating a check has been triggered from liquibase_checks_python import liquibase_utilities as lb # this is where we are importing our liquibase_utilities helper script provided by the liquibase-checks-python package liquibase_logger = liquibase_utilities.get_logger() diff --git a/scripts/redirect_creation/variables.tf b/scripts/redirect_creation/variables.tf index 80d17f20b..9fe1cbf6b 100644 --- a/scripts/redirect_creation/variables.tf +++ b/scripts/redirect_creation/variables.tf @@ -14,6 +14,8 @@ variable "redirects" { { key = "/2014/11/faq.html", website_redirect = "/faq.html" }, { key = "/2014/11/home.html", website_redirect = "/home.html" }, { key = "/2014/11/popular-topics.html", website_redirect = "/home.html" }, + { key = "/bigquery", website_redirect = "/start/tutorials/google-bigquery/home.html" }, + { key = "/bigquery.html", website_redirect = "/start/tutorials/google-bigquery/home.html" }, { key = "/change-tracking/maintenance/tag.html", website_redirect = "/commands/utility/tag.html" }, { key = "/change-types", website_redirect = "/change-types/home.html" }, { key = "/change-types/column.html", website_redirect = "/change-types/nested-tags/column.html" },