Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
OrganizationIntegrationsLoosePermission,
)
from sentry.api.validators.project_codeowners import build_codeowners_associations
from sentry.constants import ObjectStatus
from sentry.integrations.services.integration import integration_service
from sentry.models.organization import Organization
from sentry.models.project import Project
from sentry.models.projectcodeowners import ProjectCodeOwners


Expand All @@ -30,10 +28,7 @@ def get(self, request: Request, organization: Organization) -> Response:
Returns all ProjectCodeOwners associations for an organization as a dict with projects as keys
e.g. {"projectSlug": {associations: {...}, errors: {...}}, ...]
"""
projects = Project.objects.filter(
organization=organization,
status=ObjectStatus.ACTIVE,
)
projects = self.get_projects(request, organization)
Comment thread
giovanni-guidini marked this conversation as resolved.
Comment thread
giovanni-guidini marked this conversation as resolved.
project_code_owners = ProjectCodeOwners.objects.filter(project__in=projects)
provider = request.GET.get("provider")
if provider:
Expand Down
Loading