: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
fix(workflows): raise hog_flows list page size to 200 (#62424)
Meikel Ratz5d215cc32901
diff --git a/products/workflows/backend/api/hog_flow.py b/products/workflows/backend/api/hog_flow.pyindex f8dc3cb12b6c..36ef934c2fe0 100644--- a/products/workflows/backend/api/hog_flow.py+++ b/products/workflows/backend/api/hog_flow.py@@ -14,6 +14,7 @@ from django_filters.rest_framework import DjangoFilterBackendfrom drf_spectacular.utils import OpenApiParameter, extend_schemafrom rest_framework import exceptions, serializers, viewsetsfrom rest_framework.decorators import action+from rest_framework.pagination import LimitOffsetPaginationfrom rest_framework.request import Requestfrom rest_framework.response import Responsefrom rest_framework.serializers import BaseSerializer@@ -701,6 +702,13 @@ class HogFlowFilterSet(FilterSet):fields = ["id", "created_by", "created_at", "updated_at", "status"]+class HogFlowPagination(LimitOffsetPagination):+ # Bumped from the global default of 100 so the workflows list page loads all flows in one+ # request — the frontend list/search runs client-side over a single page (no pagination UI yet).+ default_limit = 200+ max_limit = 500++@extend_schema(extensions={"x-product": "workflows"})class HogFlowViewSet(TeamAndOrgViewSetMixin, LogEntryMixin, AppMetricsMixin, viewsets.ModelViewSet):scope_object = "hog_flow"@@ -723,6 +731,7 @@ class HogFlowViewSet(TeamAndOrgViewSetMixin, LogEntryMixin, AppMetricsMixin, vie"bulk_delete",]queryset = HogFlow.objects.all()+ pagination_class = HogFlowPaginationfilter_backends = [DjangoFilterBackend]filterset_class = HogFlowFilterSetlog_source = "hog_flow"