From aaa13e15adac6d278c31c8759a751021c8dd5600 Mon Sep 17 00:00:00 2001 From: Iain Dillingham Date: Tue, 17 Oct 2023 17:25:38 +0100 Subject: [PATCH 1/3] feat: Remove ONS-CIS We removed ONS-CIS some time ago. --- opensafely/check.py | 7 ------- tests/fixtures/permissions/repository_permissions.yaml | 6 ++---- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/opensafely/check.py b/opensafely/check.py index 1afb3cd..3f7cb51 100644 --- a/opensafely/check.py +++ b/opensafely/check.py @@ -36,13 +36,6 @@ class RestrictedDataset: ], ehrql_table_names=["isaric_new"], ), - RestrictedDataset( - name="ons_cis", - cohort_extractor_function_names=[ - "with_an_ons_cis_record", - ], - ehrql_table_names=["ons_cis_raw", "ons_cis"], - ), RestrictedDataset( name="ukrr", cohort_extractor_function_names=[ diff --git a/tests/fixtures/permissions/repository_permissions.yaml b/tests/fixtures/permissions/repository_permissions.yaml index 014358c..a79586d 100644 --- a/tests/fixtures/permissions/repository_permissions.yaml +++ b/tests/fixtures/permissions/repository_permissions.yaml @@ -2,15 +2,13 @@ opensafely/dummy_icnarc: allow: ['icnarc'] opensafely/dummy_ons: allow: ['ons'] -opensafely/dummy_ons_cis: - allow: ['ons_cis'] opensafely/dummy_ukrr: allow: ['ukrr'] opensafely/dummy_icnarc_ons: - allow: ['icnarc', 'ons', 'ons_cis'] + allow: ['icnarc', 'ons'] opensafely/dummy_isaric: allow: ['isaric'] opensafely/dummy_open_prompt: allow: ['open_prompt'] opensafely/dummy_all: - allow: ['icnarc', 'ons', 'isaric', 'ons_cis', 'ukrr', 'open_prompt'] + allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt'] From 90189c2e81889d4bb90beb907ae83624a1ef9582 Mon Sep 17 00:00:00 2001 From: Iain Dillingham Date: Tue, 17 Oct 2023 17:27:59 +0100 Subject: [PATCH 2/3] feat: Restrict access to Clock Stops dataset --- opensafely/check.py | 5 +++++ tests/fixtures/permissions/repository_permissions.yaml | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/opensafely/check.py b/opensafely/check.py index 3f7cb51..321cbd2 100644 --- a/opensafely/check.py +++ b/opensafely/check.py @@ -55,6 +55,11 @@ class RestrictedDataset: cohort_extractor_function_names=[], ehrql_table_names=["open_prompt"], ), + RestrictedDataset( + name="wl_clockstops", + cohort_extractor_function_names=[], + ehrql_table_names=["wl_clockstops", "wl_clockstops_raw"], + ), ] PERMISSIONS_URL = "https://raw.githubusercontent.com/opensafely-core/opensafely-cli/main/repository_permissions.yaml" diff --git a/tests/fixtures/permissions/repository_permissions.yaml b/tests/fixtures/permissions/repository_permissions.yaml index a79586d..14b3016 100644 --- a/tests/fixtures/permissions/repository_permissions.yaml +++ b/tests/fixtures/permissions/repository_permissions.yaml @@ -10,5 +10,7 @@ opensafely/dummy_isaric: allow: ['isaric'] opensafely/dummy_open_prompt: allow: ['open_prompt'] +opensafely/dummy_wl_clockstops: + allow: ['wl_clockstops'] opensafely/dummy_all: - allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt'] + allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt', 'wl_clockstops'] From c6e98a63c8887b3eb2ba5698ef5b476beee12697 Mon Sep 17 00:00:00 2001 From: Iain Dillingham Date: Tue, 17 Oct 2023 17:29:20 +0100 Subject: [PATCH 3/3] feat: Restrict access to Open Pathways dataset --- opensafely/check.py | 5 +++++ tests/fixtures/permissions/repository_permissions.yaml | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/opensafely/check.py b/opensafely/check.py index 321cbd2..500f507 100644 --- a/opensafely/check.py +++ b/opensafely/check.py @@ -60,6 +60,11 @@ class RestrictedDataset: cohort_extractor_function_names=[], ehrql_table_names=["wl_clockstops", "wl_clockstops_raw"], ), + RestrictedDataset( + name="wl_openpathways", + cohort_extractor_function_names=[], + ehrql_table_names=["wl_openpathways", "wl_openpathways_raw"], + ), ] PERMISSIONS_URL = "https://raw.githubusercontent.com/opensafely-core/opensafely-cli/main/repository_permissions.yaml" diff --git a/tests/fixtures/permissions/repository_permissions.yaml b/tests/fixtures/permissions/repository_permissions.yaml index 14b3016..7be97a5 100644 --- a/tests/fixtures/permissions/repository_permissions.yaml +++ b/tests/fixtures/permissions/repository_permissions.yaml @@ -12,5 +12,7 @@ opensafely/dummy_open_prompt: allow: ['open_prompt'] opensafely/dummy_wl_clockstops: allow: ['wl_clockstops'] +opensafely/dummy_wl_openpathways: + allow: ['wl_openpathways'] opensafely/dummy_all: - allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt', 'wl_clockstops'] + allow: ['icnarc', 'ons', 'isaric', 'ukrr', 'open_prompt', 'wl_clockstops', 'wl_openpathways']