From f7fffce73e019bb5d99ce857f3cbf2e1945e5b7b Mon Sep 17 00:00:00 2001 From: Carl Cervone <42869436+ccerv1@users.noreply.github.com> Date: Mon, 10 Jun 2024 22:10:08 -0400 Subject: [PATCH] feat: add mapping of agora ids to oso project names (#1617) --- .../superchain/verification/rf4_oso_contract_discovery.sql | 4 ++-- warehouse/dbt/models/static_data_sources.yml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/warehouse/dbt/models/marts/superchain/verification/rf4_oso_contract_discovery.sql b/warehouse/dbt/models/marts/superchain/verification/rf4_oso_contract_discovery.sql index eb4ef22c7..61c1d4857 100644 --- a/warehouse/dbt/models/marts/superchain/verification/rf4_oso_contract_discovery.sql +++ b/warehouse/dbt/models/marts/superchain/verification/rf4_oso_contract_discovery.sql @@ -1,9 +1,9 @@ with projects as ( select apps.application_id, - apps.project_name, + apps.oso_project_name as project_name, current_projects.blockchain - from {{ source('static_data_sources', 'agora_rf4_applications') }} as apps + from {{ source('static_data_sources', 'agora_rf4_to_ossd') }} as apps left join {{ ref('stg_ossd__current_projects') }} as current_projects on apps.oso_project_name = current_projects.project_name diff --git a/warehouse/dbt/models/static_data_sources.yml b/warehouse/dbt/models/static_data_sources.yml index 6190b0455..e8e3198ed 100644 --- a/warehouse/dbt/models/static_data_sources.yml +++ b/warehouse/dbt/models/static_data_sources.yml @@ -8,4 +8,6 @@ sources: - name: agora_rf4_applications identifier: agora_rf4_applications - name: agora_rf4_artifacts_by_app - identifier: agora_rf4_artifacts_by_app \ No newline at end of file + identifier: agora_rf4_artifacts_by_app + - name: agora_rf4_to_ossd + identifier: agora_rf4_to_ossd \ No newline at end of file