From aa58bc1256a89be53eea26dcb338dba48a962677 Mon Sep 17 00:00:00 2001 From: Raj Joshi Date: Thu, 1 Aug 2024 09:29:40 -0700 Subject: [PATCH] removing bitflag --- src/sentry/api/endpoints/organization_details.py | 3 --- tests/sentry/api/endpoints/test_organization_details.py | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/sentry/api/endpoints/organization_details.py b/src/sentry/api/endpoints/organization_details.py index 7b16fde820ca8..29837e1d130b7 100644 --- a/src/sentry/api/endpoints/organization_details.py +++ b/src/sentry/api/endpoints/organization_details.py @@ -512,8 +512,6 @@ def save(self): org.flags.require_email_verification = data["requireEmailVerification"] if "allowMemberProjectCreation" in data: org.flags.disable_member_project_creation = not data["allowMemberProjectCreation"] - if "allowSuperuserAccess" in data: - org.flags.prevent_superuser_access = not data["allowSuperuserAccess"] if "name" in data: org.name = data["name"] if "slug" in data: @@ -531,7 +529,6 @@ def save(self): "require_2fa": org.flags.require_2fa.is_set, "codecov_access": org.flags.codecov_access.is_set, "disable_member_project_creation": org.flags.disable_member_project_creation.is_set, - "prevent_superuser_access": org.flags.prevent_superuser_access.is_set, }, } diff --git a/tests/sentry/api/endpoints/test_organization_details.py b/tests/sentry/api/endpoints/test_organization_details.py index c04197e93617d..eebe41e8bd12c 100644 --- a/tests/sentry/api/endpoints/test_organization_details.py +++ b/tests/sentry/api/endpoints/test_organization_details.py @@ -471,7 +471,6 @@ def test_various_options(self, mock_get_repositories): assert org.flags.early_adopter assert org.flags.codecov_access - assert org.flags.prevent_superuser_access assert not org.flags.allow_joinleave assert org.flags.disable_shared_issues assert org.flags.enhanced_privacy @@ -503,9 +502,6 @@ def test_various_options(self, mock_get_repositories): assert "to {}".format(data["openMembership"]) in log.data["allow_joinleave"] assert "to {}".format(data["isEarlyAdopter"]) in log.data["early_adopter"] assert "to {}".format(data["codecovAccess"]) in log.data["codecov_access"] - assert ( - "to {}".format(not data["allowSuperuserAccess"]) in log.data["prevent_superuser_access"] - ) assert "to {}".format(data["enhancedPrivacy"]) in log.data["enhanced_privacy"] assert "to {}".format(not data["allowSharedIssues"]) in log.data["disable_shared_issues"] assert "to {}".format(data["require2FA"]) in log.data["require_2fa"]