Skip to content

Commit

Permalink
removed legacy and deprecations (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
drethereum committed Jun 3, 2024
1 parent 279b826 commit d66cec0
Show file tree
Hide file tree
Showing 24 changed files with 8 additions and 488 deletions.

This file was deleted.

17 changes: 0 additions & 17 deletions models/bronze/prices/_legacy/bronze__asset_metadata_priority.sql

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions models/bronze/prices/_legacy/bronze__hourly_prices_priority.sql

This file was deleted.

This file was deleted.

20 changes: 6 additions & 14 deletions models/gold/price/price__dim_asset_metadata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,14 @@

SELECT
token_address,
asset_id AS id, -- id column pending deprecation
asset_id,
A.symbol,
A.name,
C.decimals, -- decimals column pending deprecation
symbol,
name,
platform AS blockchain,
platform_id AS blockchain_id,
provider,
A.inserted_timestamp,
A.modified_timestamp,
A.complete_provider_asset_metadata_id AS dim_asset_metadata_id
inserted_timestamp,
modified_timestamp,
complete_provider_asset_metadata_id AS dim_asset_metadata_id
FROM
{{ ref('silver__complete_provider_asset_metadata') }} A
LEFT JOIN {{ ref('core__dim_contracts') }} C --remove this join alongside decimal column deprecation
ON LOWER(
C.address
) = LOWER(
A.token_address
)
{{ ref('silver__complete_provider_asset_metadata') }}
6 changes: 1 addition & 5 deletions models/gold/price/price__dim_asset_metadata.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
version: 2
models:
- name: price__dim_asset_metadata
description: Deprecating soon! Note, only the ID and DECIMALS columns are being removed. The dim_asset_metadata table itself is not being deprecated. '{{ doc("prices_dim_asset_metadata_table_doc") }}'
description: '{{ doc("prices_dim_asset_metadata_table_doc") }}'

columns:
- name: PROVIDER
description: '{{ doc("prices_provider")}}'
- name: ID
description: '{{ doc("prices_id_deprecation") }}'
- name: ASSET_ID
description: '{{ doc("prices_asset_id") }}'
- name: NAME
Expand All @@ -20,8 +18,6 @@ models:
description: '{{ doc("prices_blockchain") }}'
- name: BLOCKCHAIN_ID
description: '{{ doc("prices_blockchain_id") }}'
- name: DECIMALS
description: '{{ doc("prices_decimals_deprecation") }}'
- name: DIM_ASSET_METADATA_ID
description: '{{ doc("pk") }}'
- name: INSERTED_TIMESTAMP
Expand Down
2 changes: 0 additions & 2 deletions models/gold/price/price__ez_asset_metadata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

SELECT
token_address,
asset_id AS id, -- id column pending deprecation
asset_id,
symbol,
NAME,
Expand All @@ -22,7 +21,6 @@ FROM
UNION ALL
SELECT
NULL AS token_address,
asset_id AS id, -- id column pending deprecation
asset_id,
symbol,
NAME,
Expand Down
4 changes: 1 addition & 3 deletions models/gold/price/price__ez_asset_metadata.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
version: 2
models:
- name: price__ez_asset_metadata
description: Deprecating soon! Note, only the ID column is changing. The ez_asset_metadata table itself is not being deprecated. '{{ doc("prices_ez_asset_metadata_table_doc") }}'
description: '{{ doc("prices_ez_asset_metadata_table_doc") }}'

columns:
- name: ID
description: '{{ doc("prices_id_deprecation")}}'
- name: ASSET_ID
description: '{{ doc("prices_asset_id") }}'
- name: NAME
Expand Down
29 changes: 0 additions & 29 deletions models/gold/price/price__ez_hourly_token_prices.sql

This file was deleted.

4 changes: 0 additions & 4 deletions models/gold/price/price__ez_hourly_token_prices.yml

This file was deleted.

28 changes: 0 additions & 28 deletions models/gold/price/price__fact_hourly_token_prices.sql

This file was deleted.

4 changes: 0 additions & 4 deletions models/gold/price/price__fact_hourly_token_prices.yml

This file was deleted.

This file was deleted.

This file was deleted.

52 changes: 0 additions & 52 deletions models/silver/prices/_legacy/silver__asset_metadata_priority.sql

This file was deleted.

12 changes: 0 additions & 12 deletions models/silver/prices/_legacy/silver__asset_metadata_priority.yml

This file was deleted.

Loading

0 comments on commit d66cec0

Please sign in to comment.