Skip to content

Commit

Permalink
T 15666 fix dbt source snapshot freshness warn instead of error (#1483)
Browse files Browse the repository at this point in the history
* remove freshness errors on base tables

+ increase time interval for warning tornado cash

* remove freshness errors on decoded tables
  • Loading branch information
soispoke authored Sep 5, 2022
1 parent 18ef656 commit 56e0df2
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 30 deletions.
1 change: 0 additions & 1 deletion models/base_sources/arbitrum_base_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sources:
description: "Arbitrum raw tables"
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: transactions
loaded_at_field: block_time
Expand Down
1 change: 0 additions & 1 deletion models/base_sources/avalanche_c_base_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sources:
description: "avalanche_c raw tables"
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: transactions
loaded_at_field: block_time
Expand Down
1 change: 0 additions & 1 deletion models/base_sources/bnb_base_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sources:
description: "bnb raw tables"
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: transactions
loaded_at_field: block_time
Expand Down
1 change: 0 additions & 1 deletion models/base_sources/ethereum_base_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sources:
description: "Ethereum raw tables including transactions, traces and logs."
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: transactions_0006
description: "underlying transactions table. ethereum.transactions is an exposed view of this table."
Expand Down
1 change: 0 additions & 1 deletion models/base_sources/gnosis_base_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sources:
description: "gnosis raw tables"
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: transactions
loaded_at_field: block_time
Expand Down
1 change: 0 additions & 1 deletion models/base_sources/optimism_base_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sources:
description: "Optimism raw tables including transactions, traces and logs."
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: transactions
loaded_at_field: block_time
Expand Down
1 change: 0 additions & 1 deletion models/base_sources/solana_base_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sources:
description: "Solana raw tables including transactions, traces and logs."
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: transactions
loaded_at_field: block_time
Expand Down
5 changes: 0 additions & 5 deletions models/ens/ens_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ sources:
- name: BaseRegistrarImplementation_evt_NameRegistered
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
- name: BaseRegistrarImplementation_evt_NameRenewed
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
- name: ETHRegistrarController_1_evt_NameRegistered
loaded_at_field: evt_block_time
Expand All @@ -21,14 +19,12 @@ sources:
- name: ETHRegistrarController_3_evt_NameRegistered
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
- name: ENSRegistry_evt_NewOwner
loaded_at_field: evt_block_time
- name: ENSRegistryWithFallback_evt_NewOwner
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
- name: ETHRegistrarController_1_evt_NameRenewed
loaded_at_field: evt_block_time
Expand All @@ -37,5 +33,4 @@ sources:
- name: ETHRegistrarController_3_evt_NameRenewed
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
1 change: 0 additions & 1 deletion models/looksrare/ethereum/looksrare_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ sources:
- name: looksrare_ethereum
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: looksrareexchange_evt_takerask
loaded_at_field: evt_block_time
Expand Down
1 change: 0 additions & 1 deletion models/prices/prices_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ sources:
description: "Prices tables across blockchains"
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: usd
loaded_at_field: minute
Expand Down
1 change: 0 additions & 1 deletion models/safe/ethereum/safe_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ sources:
- name: gnosis_safe_ethereum
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: GnosisSafev1_3_0_evt_SafeSetup
loaded_at_field: evt_block_time
Expand Down
1 change: 0 additions & 1 deletion models/seaport/ethereum/seaport_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ sources:
- name: seaport_ethereum
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: Seaport_call_fulfillAvailableAdvancedOrders
loaded_at_field: call_block_time
Expand Down
4 changes: 0 additions & 4 deletions models/sudoswap/ethereum/sudoswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,21 @@ sources:
- name: LSSVMPairFactory_call_createPairETH
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
description: "As of 8/9/22, only ETH pairs have been created. Will need ERC20 logic in the future."
loaded_at_field: call_block_time
- name: LSSVMPair_general_call_swapNFTsForToken
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: call_block_time
- name: LSSVMPair_general_call_swapTokenForAnyNFTs
loaded_at_field: call_block_time
- name: LSSVMPair_general_call_swapTokenForSpecificNFTs
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: call_block_time
- name: LSSVMPair_general_evt_FeeUpdate
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
- name: LSSVMPair_general_evt_AssetRecipientChange
loaded_at_field: evt_block_time
Expand Down
12 changes: 6 additions & 6 deletions models/tornado_cash/tornado_cash_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
sources:
- name: tornado_cash_bnb
freshness:
warn_after: { count: 12, period: hour }
warn_after: { count: 7, period: day }
tables:
- name: TornadoCashBNB_evt_Deposit
loaded_at_field: evt_block_time
Expand All @@ -30,7 +30,7 @@ sources:

- name: tornado_cash_arbitrum
freshness:
warn_after: { count: 12, period: hour }
warn_after: { count: 7, period: day }
tables:
- name: ETHTornado_evt_Deposit
loaded_at_field: evt_block_time
Expand Down Expand Up @@ -58,7 +58,7 @@ sources:

- name: tornado_cash_optimism
freshness:
warn_after: { count: 12, period: hour }
warn_after: { count: 7, period: day }
tables:
- name: ETHTornado_evt_Deposit
loaded_at_field: evt_block_time
Expand Down Expand Up @@ -86,7 +86,7 @@ sources:

- name: tornado_cash_avalanche_c
freshness:
warn_after: { count: 12, period: hour }
warn_after: { count: 7, period: day }
tables:
- name: ETHTornado_evt_Deposit
loaded_at_field: evt_block_time
Expand Down Expand Up @@ -114,7 +114,7 @@ sources:

- name: tornado_cash_ethereum
freshness:
warn_after: { count: 12, period: hour }
warn_after: { count: 7, period: day }
tables:
- name: erc20_evt_Deposit
loaded_at_field: evt_block_time
Expand Down Expand Up @@ -161,7 +161,7 @@ sources:

- name: tornado_cash_gnosis
freshness:
warn_after: { count: 12, period: hour }
warn_after: { count: 7, period: day }
tables:
- name: eth_evt_Deposit
loaded_at_field: evt_block_time
Expand Down
1 change: 0 additions & 1 deletion models/transfers/ethereum/transfers_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ sources:
- name: zeroex_ethereum
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: weth9_evt_deposit
loaded_at_field: evt_block_time
Expand Down
2 changes: 0 additions & 2 deletions models/uniswap/ethereum/uniswap_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ sources:
- name: Exchange_evt_TokenPurchase
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: evt_block_time
description: "" # to-do
columns:
Expand Down Expand Up @@ -74,7 +73,6 @@ sources:
description: "Ethereum decoded tables related to Uniswap v2 contract"
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: Pair_evt_Swap
loaded_at_field: evt_block_time
Expand Down
1 change: 0 additions & 1 deletion models/x2y2/ethereum/x2y2_ethereum_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ sources:
- name: x2y2_ethereum
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
tables:
- name: X2Y2_r1_evt_EvProfit
loaded_at_field: evt_block_time
Expand Down

0 comments on commit 56e0df2

Please sign in to comment.