Skip to content

Commit

Permalink
Merge pull request #1850 from TEAMSchools/1842-deprecate-teamster_uti…
Browse files Browse the repository at this point in the history
…ls-dbt-package

1842 deprecate teamster utils dbt package
  • Loading branch information
cbini authored Sep 27, 2024
2 parents 938ba77 + 267730b commit 2c08ba9
Show file tree
Hide file tree
Showing 128 changed files with 2,472 additions and 1,921 deletions.
9 changes: 9 additions & 0 deletions .devcontainer/tpl/.env.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
DBT_DEV_CLOUD_STORAGE_URI_BASE=gs://teamster-kippnewark/dagster/kippnewark
DBT_DEV_DEANSLIST_SCHEMA=_dev_deanslist
DBT_DEV_EDPLAN_SCHEMA=_dev_edplan
DBT_DEV_IREADY_SCHEMA=_dev_iready
DBT_DEV_OVERGRAD_SCHEMA=_dev_overgrad
DBT_DEV_PEARSON_SCHEMA=_dev_pearson
DBT_DEV_POWERSCHOOL_SCHEMA=_dev_powerschool
DBT_DEV_RENLEARN_SCHEMA=_dev_renlearn
DBT_DEV_TITAN_SCHEMA=_dev_titan
ADP_SFTP_HOST_IP=op://Data Team/ADP Workforce Now SFTP/ip
ADP_SFTP_PASSWORD=op://Data Team/ADP Workforce Now SFTP/password
ADP_SFTP_USERNAME=op://Data Team/ADP Workforce Now SFTP/username
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-prod-kippcamden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
- src/dbt/overgrad/**
- src/dbt/pearson/**
- src/dbt/powerschool/**
- src/dbt/teamster_utils/**
- src/dbt/titan/**
- src/teamster/code_locations/kippcamden/**
- src/teamster/core/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-prod-kippmiami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- src/dbt/kippmiami/**
- src/dbt/powerschool/**
- src/dbt/renlearn/**
- src/dbt/teamster_utils/**
- src/teamster/code_locations/kippmiami/**
- src/teamster/core/**
- src/teamster/libraries/couchdrop/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-prod-kippnewark.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ on:
- src/dbt/pearson/**
- src/dbt/powerschool/**
- src/dbt/renlearn/**
- src/dbt/teamster_utils/**
- src/dbt/titan/**
- src/teamster/code_locations/kippnewark/**
- src/teamster/core/**
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-prod-kipptaf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- Dockerfile
- requirements.txt
- src/dbt/kipptaf/**
- src/dbt/teamster_utils/**
- src/teamster/code_locations/kipptaf/**
- src/teamster/core/**
- src/teamster/libraries/adp/**
Expand Down
51 changes: 0 additions & 51 deletions scripts/fivetran-schema.py

This file was deleted.

51 changes: 0 additions & 51 deletions scripts/render_source_to_models.py

This file was deleted.

26 changes: 0 additions & 26 deletions scripts/scaffold_models.py

This file was deleted.

6 changes: 1 addition & 5 deletions src/dbt/deanslist/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ clean-targets: # directories to be removed by `dbt clean`
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
models:
deanslist:
+materialized: table

vars:
cloud_storage_uri_base: null
+schema: deanslist
97 changes: 70 additions & 27 deletions src/dbt/deanslist/models/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ version: 2

sources:
- name: deanslist
schema: "{{ var('deanslist_schema', 'deanslist') }}"
database:
"{% if target.type != 'spark' %}{{ var('deanslist_database', target.database) }}{% endif %}"
schema: "{{ var('deanslist_schema', env_var('DBT_DEV_DEANSLIST_SCHEMA', 'deanslist')) }}"
database: "{{ var('deanslist_database', target.database) }}"
tags:
- stage_external_sources
tables:
Expand All @@ -16,9 +15,13 @@ sources:
- deanslist
- behavior
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/behavior/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/behavior/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/behavior/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/behavior/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__comm_log
Expand All @@ -29,9 +32,13 @@ sources:
- deanslist
- comm_log
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/comm_log/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/comm_log/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/comm_log/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/comm_log/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__followups
Expand All @@ -42,9 +49,13 @@ sources:
- deanslist
- followups
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/followups/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/followups/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/followups/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/followups/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__homework
Expand All @@ -55,9 +66,13 @@ sources:
- deanslist
- homework
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/homework/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/homework/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/homework/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/homework/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__incidents
Expand All @@ -68,9 +83,13 @@ sources:
- deanslist
- incidents
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/incidents/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/incidents/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/incidents/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/incidents/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__lists
Expand All @@ -81,9 +100,13 @@ sources:
- deanslist
- lists
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/lists/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/lists/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/lists/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/lists/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__roster_assignments
Expand All @@ -95,11 +118,11 @@ sources:
- roster_assignments
external:
location:
"gs://teamster-{{ project_name }}/dagster/{{ project_name
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/roster_assignments/*"
options:
hive_partition_uri_prefix:
"gs://teamster-{{ project_name }}/dagster/{{ project_name
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/roster_assignments/"
format: AVRO
enable_logical_types: true
Expand All @@ -111,9 +134,13 @@ sources:
- deanslist
- rosters
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/rosters/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/rosters/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/rosters/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/rosters/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__terms
Expand All @@ -124,9 +151,13 @@ sources:
- deanslist
- terms
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/terms/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/terms/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/terms/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/terms/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__users
Expand All @@ -137,9 +168,13 @@ sources:
- deanslist
- users
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/users/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/users/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/users/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/users/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__students
Expand All @@ -150,9 +185,13 @@ sources:
- deanslist
- students
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/students/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/students/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/students/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/students/"
format: AVRO
enable_logical_types: true
- name: src_deanslist__dff_stats
Expand All @@ -163,8 +202,12 @@ sources:
- deanslist
- dff_stats
external:
location: "{{ var('cloud_storage_uri_base') }}/deanslist/dff_stats/*"
location:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/dff_stats/*"
options:
hive_partition_uri_prefix: "{{ var('cloud_storage_uri_base') }}/deanslist/dff_stats/"
hive_partition_uri_prefix:
"{{ var('cloud_storage_uri_base', env_var('DBT_DEV_CLOUD_STORAGE_URI_BASE', ''))
}}/deanslist/dff_stats/"
format: AVRO
enable_logical_types: true
Loading

0 comments on commit 2c08ba9

Please sign in to comment.