From c35e874a1de4e7e1ce399df14701226a857bb0b0 Mon Sep 17 00:00:00 2001 From: Sunny Aggarwal Date: Thu, 12 Nov 2026 14:37:23 +0530 Subject: [PATCH] OpenConceptLab/ocl_online#624 | Remove the obsolete mapper-waitlist group and MAPPER_WAITLIST_TOGGLE, and delete the group from existing databases Co-Authored-By: Claude Opus 5.5 --- core/fixtures/auth_groups.yaml | 4 ---- core/fixtures/toggles.json | 12 ------------ core/users/constants.py | 1 - .../0039_delete_mapper_waitlist_group.py | 17 +++++++++++++++++ 4 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 core/users/migrations/0039_delete_mapper_waitlist_group.py diff --git a/core/fixtures/auth_groups.yaml b/core/fixtures/auth_groups.yaml index 3bd648f1f..533f98c23 100644 --- a/core/fixtures/auth_groups.yaml +++ b/core/fixtures/auth_groups.yaml @@ -81,10 +81,6 @@ pk: 5 fields: name: mapper_ai_assistant -- model: "auth.group" - pk: 6 - fields: - name: mapper-waitlist - model: "auth.group" pk: 7 fields: diff --git a/core/fixtures/toggles.json b/core/fixtures/toggles.json index 385e07e89..3db14f053 100644 --- a/core/fixtures/toggles.json +++ b/core/fixtures/toggles.json @@ -31,18 +31,6 @@ "qa": true } }, - { - "pk": 7, - "model": "toggles.toggle", - "fields": { - "is_active": true, - "name": "MAPPER_WAITLIST_TOGGLE", - "dev": true, - "qa": false, - "staging": true, - "production": true - } - }, { "pk": 8, "model": "toggles.toggle", diff --git a/core/users/constants.py b/core/users/constants.py index fbcbbd498..dce41f1b8 100644 --- a/core/users/constants.py +++ b/core/users/constants.py @@ -10,7 +10,6 @@ HAPI_FHIR_SERVERS_GROUP = 'hapi_fhir_servers' OPERATIONS_PANEL_GROUP = 'operations_panel' MAPPER_AI_ASSISTANT_GROUP = 'mapper_ai_assistant' -MAPPER_WAITLIST_GROUP = 'mapper-waitlist' # obsolete no effect MAPPER_APPROVED_GROUP = 'mapper-approved' # obsolete no effect EARLY_ACCESS_NGO_GROUP = 'early_access_ngo' GUEST_GROUP = 'guest_user' diff --git a/core/users/migrations/0039_delete_mapper_waitlist_group.py b/core/users/migrations/0039_delete_mapper_waitlist_group.py new file mode 100644 index 000000000..6505efc8d --- /dev/null +++ b/core/users/migrations/0039_delete_mapper_waitlist_group.py @@ -0,0 +1,17 @@ +from django.db import migrations + + +def delete_mapper_waitlist_group(apps, schema_editor): # pylint: disable=unused-argument + apps.get_model('auth', 'Group').objects.filter(name='mapper-waitlist').delete() + + +class Migration(migrations.Migration): + + dependencies = [ + ('auth', '0012_alter_user_first_name_max_length'), + ('users', '0038_alter_userprofile_organizations'), + ] + + operations = [ + migrations.RunPython(delete_mapper_waitlist_group, migrations.RunPython.noop), + ]