From 74d472bfbd13576079d66d5d5f54578c471ad2bb Mon Sep 17 00:00:00 2001 From: Elliot Taylor Date: Wed, 4 Jan 2023 15:50:12 +0000 Subject: [PATCH] Add exposures --- jaffle_shop/models/final/finance/_exposures.yml | 12 ++++++++++++ jaffle_shop/models/final/sales/_exposures.yml | 12 ++++++++++++ .../models/staging/src_seed/sensitive/_models.yml | 2 +- jaffle_shop/models/warehouse/_models.yml | 6 +++--- 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 jaffle_shop/models/final/finance/_exposures.yml create mode 100644 jaffle_shop/models/final/sales/_exposures.yml diff --git a/jaffle_shop/models/final/finance/_exposures.yml b/jaffle_shop/models/final/finance/_exposures.yml new file mode 100644 index 000000000..b38da1da7 --- /dev/null +++ b/jaffle_shop/models/final/finance/_exposures.yml @@ -0,0 +1,12 @@ +version: 2 + +exposures: + - name: customer_return_total + description: Inksacio App to show the total sum of customer returns, per customer (for both completed and upcoming) + type: dashboard + url: https://inksacio.eks.octojaffle.engineering/customer_return_totals/ + owner: + name: 'Elliot Taylor' + email: elliot.taylor@octojaffle.com + depends_on: + - ref('fnl_finance_customerreturnstotal') \ No newline at end of file diff --git a/jaffle_shop/models/final/sales/_exposures.yml b/jaffle_shop/models/final/sales/_exposures.yml new file mode 100644 index 000000000..c12bb1be5 --- /dev/null +++ b/jaffle_shop/models/final/sales/_exposures.yml @@ -0,0 +1,12 @@ +version: 2 + +exposures: + - name: new_customer_history + description: Inksacio App to show monthly new customer history + type: dashboard + url: https://inksacio.eks.octojaffle.engineering/new_customer_history/ + owner: + name: 'Elliot Taylor' + email: elliot.taylor@octojaffle.com + depends_on: + - ref('fnl_sales_newcustomerhistory') \ No newline at end of file diff --git a/jaffle_shop/models/staging/src_seed/sensitive/_models.yml b/jaffle_shop/models/staging/src_seed/sensitive/_models.yml index f5e4e844d..6649bf8af 100644 --- a/jaffle_shop/models/staging/src_seed/sensitive/_models.yml +++ b/jaffle_shop/models/staging/src_seed/sensitive/_models.yml @@ -1,7 +1,7 @@ version: 2 models: - - name: stg_customers + - name: stg_customers_pii columns: - name: customer_id tests: diff --git a/jaffle_shop/models/warehouse/_models.yml b/jaffle_shop/models/warehouse/_models.yml index 381349cfd..d2708aa91 100644 --- a/jaffle_shop/models/warehouse/_models.yml +++ b/jaffle_shop/models/warehouse/_models.yml @@ -1,7 +1,7 @@ version: 2 models: - - name: customers + - name: wh_customers description: This table has basic information about a customer, as well as some derived facts based on a customer's orders columns: @@ -29,7 +29,7 @@ models: - name: total_order_amount description: Total value (AUD) of a customer's orders - - name: orders + - name: wh_orders description: This table has basic information about orders, as well as some derived facts based on payments columns: @@ -44,7 +44,7 @@ models: tests: - not_null - relationships: - to: ref('customers') + to: ref('wh_customers') field: customer_id - name: order_date