Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore: bump hard project limit to 2000 (#75426)

Reece Jones49083f881b09
diff --git a/posthog/api/project.py b/posthog/api/project.py
index 26b094f0f9cb..d3ce5493bb86 100644
--- a/posthog/api/project.py
+++ b/posthog/api/project.py
@@ -121,7 +121,7 @@ from ee.api.rbac.access_control import AccessControlViewSetMixin
logger = structlog.get_logger(__name__)
-MAX_ALLOWED_PROJECTS_PER_ORG = 1500
+MAX_ALLOWED_PROJECTS_PER_ORG = 2000
# --- Backward-compatibility logic for the /api/projects/ surface ---
diff --git a/posthog/api/test/test_project.py b/posthog/api/test/test_project.py
index 6ba0f8b48db2..fbdd90cedacf 100644
--- a/posthog/api/test/test_project.py
+++ b/posthog/api/test/test_project.py
@@ -337,18 +337,18 @@ class TestProjectAPI(team_api_test_factory()): # type: ignore
self.organization_membership.level = OrganizationMembership.Level.ADMIN
self.organization_membership.save()
- # Mock the teams queryset to return a count of 1500 non-demo projects
+ # Mock the teams queryset to return a count of 2000 non-demo projects
mock_qs = MagicMock()
- mock_qs.exclude.return_value.distinct.return_value.count.return_value = 1500
+ mock_qs.exclude.return_value.distinct.return_value.count.return_value = 2000
mock_teams.return_value = mock_qs
- mock_teams.exclude.return_value.distinct.return_value.count.return_value = 1500
+ mock_teams.exclude.return_value.distinct.return_value.count.return_value = 2000
# Should not be able to create another project
response = self.client.post("/api/projects/", {"name": "Project 1001"})
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
self.assertEqual(
response.json()["detail"],
- "You have reached the maximum limit of 1500 projects per organization. Contact support if you'd like access to more projects.",
+ "You have reached the maximum limit of 2000 projects per organization. Contact support if you'd like access to more projects.",
)
def test_demo_projects_not_counted_toward_limit(self):