: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: raise dashboards/team to 5000, lower insights/dashboard to 100 (#57584)
Andy Zhao2aae17f80dc3
diff --git a/posthog/resource_limits/registry.py b/posthog/resource_limits/registry.pyindex 06cd729d563c..88b4a1a21d03 100644--- a/posthog/resource_limits/registry.py+++ b/posthog/resource_limits/registry.py@@ -45,12 +45,12 @@ REGISTRY: dict[str, LimitDefinition] = {LimitKey.MAX_DASHBOARDS_PER_TEAM: LimitDefinition(key=LimitKey.MAX_DASHBOARDS_PER_TEAM,description="Saved dashboards in a project",- default=500,+ default=5000,),LimitKey.MAX_INSIGHTS_PER_DASHBOARD: LimitDefinition(key=LimitKey.MAX_INSIGHTS_PER_DASHBOARD,description="Insight tiles attached to a single dashboard",- default=5000,+ default=100,),LimitKey.MAX_ALERTS_PER_TEAM: LimitDefinition(key=LimitKey.MAX_ALERTS_PER_TEAM,diff --git a/posthog/resource_limits/test/test_evaluator.py b/posthog/resource_limits/test/test_evaluator.pyindex 5434ba61780a..b8dd8b4d92a4 100644--- a/posthog/resource_limits/test/test_evaluator.py+++ b/posthog/resource_limits/test/test_evaluator.py@@ -10,15 +10,15 @@ from posthog.resource_limits.registry import REGISTRY, LimitDefinitionclass TestGetLimit(BaseTest):def test_returns_catalog_default(self) -> None:- assert get_limit(team=self.team, key=LimitKey.MAX_DASHBOARDS_PER_TEAM) == 500+ assert get_limit(team=self.team, key=LimitKey.MAX_DASHBOARDS_PER_TEAM) == 5000class TestCheckCountLimit(BaseTest):@parameterized.expand([("below_threshold", 10, False, None),- ("one_below_threshold", 499, True, True),- ("at_threshold", 500, True, False),+ ("one_below_threshold", 4999, True, True),+ ("at_threshold", 5000, True, False),("far_above_threshold", 10_000, True, False),])@@ -45,7 +45,7 @@ class TestCheckCountLimit(BaseTest):assert args[1] == "resource limit hit"properties = args[2]assert properties["limit_key"] == LimitKey.MAX_DASHBOARDS_PER_TEAM- assert properties["limit"] == 500+ assert properties["limit"] == 5000assert properties["current_count"] == current_countassert properties["crossing_threshold"] is expect_crossingassert properties["team_id"] == self.team.id@@ -95,7 +95,7 @@ class TestGetOrganizationLimit(BaseTest):organization=self.organization,key=LimitKey.MAX_DASHBOARDS_PER_TEAM,)- == 500+ == 5000)