Browse Source

chore(hybrid-cloud): Delete User.get_from_organizations (#49506)

Alberto Leal 1 year ago
parent
commit
ad360027fe
1 changed files with 0 additions and 9 deletions
  1. 0 9
      src/sentry/models/user.py

+ 0 - 9
src/sentry/models/user.py

@@ -52,15 +52,6 @@ class UserManager(BaseManager, DjangoUserManager):
             is_active=True,
         ).distinct()
 
-    def get_from_organizations(self, organization_ids):
-        """Returns users associated with an Organization based on their teams."""
-        # TODO(hybridcloud) This is doing cross silo joins
-        return self.filter(
-            sentry_orgmember_set__organization_id__in=organization_ids,
-            sentry_orgmember_set__organizationmemberteam__is_active=True,
-            is_active=True,
-        )
-
     def get_users_with_only_one_integration_for_provider(
         self, provider: ExternalProviders, organization_id: int
     ) -> QuerySet: