Skip to content

Commit 0aa0716

Browse files
authored
Merge pull request #103 from TechnologyEnhancedLearning/staging-data-test-team-shared
Staging data test team shared
2 parents e6efd3d + 38f6b19 commit 0aa0716

5 files changed

Lines changed: 12 additions & 2 deletions

File tree

databricks.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,11 @@ targets:
258258
env_analysis_batch_id: ${var.serverless_usage_policies.prod_analysis_batch_id}
259259
env_lh_live_id: ${var.serverless_usage_policies.prod_lh_live_id}
260260
# Note: You can leave test IDs blank here or map them to a default
261-
# since Prod doesn't have test policies.
261+
# since Prod doesn't have test policies. However frustratingly despite excluding resource/test the bundle validation check it anyway
262+
env_test_all_id: "NA"
263+
env_test_dq_id: "NA"
264+
env_test_int_id: "NA"
265+
env_test_unit_id: "NA"
262266
permissions:
263267
- group_name: prod_env_users
264268
level: CAN_VIEW

docs/Cost Visibility.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ qqqq maybe owner names and groups need to become the same. YES
4141

4242
Unfortunately currently dab is not setting permissions for sps to use the serverless policys so they have to be set through the UI
4343

44+
*Maybe we should have tags in Staging_Analysis_Batch for ingestion or medallion, but until we have some good queries and dashboards the most useful tags to have wont be clear*
45+
4446
| Policy Name | Env | CostCentre | Test / Owner |
4547
|---|---|---|---|
4648
|-------Numbered / General Policies-------| |||

resources/jobs/utils/full_data_refresh.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ resources:
77
- task_key: run_bronze_pipeline
88
pipeline_task:
99
pipeline_id: ${resources.pipelines.pipeline_ods_ingestion.id}
10-
10+
# not included serverless policy as this gets run by tests for the DQ tests, the best approach would be policy per task in the job calling this, and seperate the notebooks so each test task can be seperate [Not sure can do it task based](https://learn.microsoft.com/en-us/azure/databricks/admin/usage/budget-policies?source=recommendations#assign-permissions-on-a-policy)
11+
12+
1113
# Exclude streaming if they are triggered whilst active an error occurs
1214
# - task_key: run_silver_pipeline
1315
# depends_on:

resources/pipeline/ingest/ods_ingestion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ resources:
2727
pipelines:
2828
pipeline_ods_ingestion:
2929
name: ods_ingestion
30+
usage_policy_id: ${var.env_serverless_usage_policies.env_analysis_batch_id}
3031
libraries:
3132
- glob:
3233
include: ../../../src/ingestion/ods_ingest.py

resources/pipeline/silver/isreporter_dlt.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ resources:
33
pipelines:
44
pipeline_isreporter_live_dlt:
55
name: isreporter_live_dlt
6+
usage_policy_id: ${var.env_serverless_usage_policies.env_lh_live_id}
67
libraries:
78
- glob: # go up resources/pipelines/silver then down
89
include: ../../../src/silver/isreporter_dlt.py

0 commit comments

Comments
 (0)