Skip to content

Commit

Permalink
Merge branch 'master' into feature/docs_and_test_coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
debora-hcalves committed Jun 20, 2024
2 parents e969e45 + c3e6d3f commit da83ac5
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 135 deletions.
13 changes: 4 additions & 9 deletions models/sources/src_accounts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: accounts
description: '{{ doc("accounts") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- account_id
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_accounts_signers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: account_signers
description: '{{ doc("accounts_signers") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- account_id
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_claimable_balance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: claimable_balances
description: '{{ doc("claimable_balances") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- balance_id
Expand Down
9 changes: 0 additions & 9 deletions models/sources/src_contract_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ sources:
- name: contract_code
description: '{{ doc("contract_code") }}'
tests:
- dbt_utils.recency:
datepart: day
field: closed_at
interval: 3
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- contract_code_hash
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_contract_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: contract_data
description: '{{ doc("contract_data") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
columns:
- name: contract_id
description: '{{ doc("contract_id") }}'
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_history_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: history_assets_staging
description: '{{ doc("history_assets_staging") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: batch_run_date
tests:
- dbt_utils.recency:
datepart: hour
field: cast(batch_run_date as timestamp)
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
columns:
- name: asset_id
description: '{{ doc("asset_id") }}'
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_history_effects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: history_effects
description: '{{ doc("history_effects") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
columns:
- name: address
description: '{{ doc("address") }}'
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_history_ledgers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: history_ledgers
description: '{{ doc("history_ledgers") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
columns:
- name: sequence
description: '{{ doc("sequence") }}'
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_history_operations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: history_operations
description: '{{ doc("history_operations") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
columns:
- name: id
description: '{{ doc("operation_id") }}'
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_history_trades.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: history_trades
description: '{{ doc("history_trades") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: ledger_closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: ledger_closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- history_operation_id
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_history_transactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: history_transactions
description: '{{ doc("history_transactions") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
columns:
- name: id
description: '{{ doc("transaction_id") }}'
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_liquidity_pools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: liquidity_pools
description: '{{ doc("liquidity_pools") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- liquidity_pool_id
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_offers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: offers
description: '{{ doc("liquidity_pools") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- offer_id
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_trust_lines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: trust_lines
description: '{{ doc("trust_lines") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- account_id
Expand Down
13 changes: 4 additions & 9 deletions models/sources/src_ttl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ sources:
tables:
- name: ttl
description: '{{ doc("ttl") }}'
freshness:
warn_after: {count: 30, period: minute}
error_after: {count: 60, period: minute}
loaded_at_field: closed_at
tests:
- dbt_utils.recency:
datepart: hour
field: closed_at
interval: 12
config:
severity: warn
meta:
description:
"Monitors the freshness of your table over time, as the expected time between data updates."
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- key_hash
Expand Down

0 comments on commit da83ac5

Please sign in to comment.