diff --git a/.github/workflows/elementary-review.yml b/.github/workflows/elementary-review.yml new file mode 100644 index 000000000..97198af22 --- /dev/null +++ b/.github/workflows/elementary-review.yml @@ -0,0 +1,25 @@ +name: Elementary Data Quality Review + +on: + pull_request: + paths: + - "models/**/*.sql" + - "models/**/*.yml" + - "dbt_project.yml" + +jobs: + elementary-review: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + issues: write + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - uses: elementary-data/elementary-ci@v1 + with: + elementary-api-key: ${{ secrets.ELEMENTARY_API_KEY }} + elementary-api-url: "https://dev.api.elementary-data.com" diff --git a/models/customers.sql b/models/customers.sql index 76f6601c5..1d7ea4ff9 100644 --- a/models/customers.sql +++ b/models/customers.sql @@ -71,7 +71,7 @@ final as ( from customers - left join customer_orders + inner join customer_orders on customers.customer_id = customer_orders.customer_id left join customer_payments diff --git a/models/schema.yml b/models/schema.yml index 021cf8642..ff0e323b3 100644 --- a/models/schema.yml +++ b/models/schema.yml @@ -2,7 +2,7 @@ version: 2 models: - name: customers - description: This table has basic information about a customer, as well as some derived facts based on a customer's orders + description: This table has basic information about a customer, as well as some derived facts based on a customer's orders aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa config: tags: ["PII"]