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.

fix(engineering-analytics): paginate unbounded tables (#74006)

Raúl Negrón-Otero205dcae80a0f
diff --git a/products/engineering_analytics/frontend/scenes/PullRequestDetailScene.tsx b/products/engineering_analytics/frontend/scenes/PullRequestDetailScene.tsx
index 6e987e07956f..2bbe5138d915 100644
--- a/products/engineering_analytics/frontend/scenes/PullRequestDetailScene.tsx
+++ b/products/engineering_analytics/frontend/scenes/PullRequestDetailScene.tsx
@@ -606,6 +606,8 @@ function PrWorkflowsTable({
]
return (
<LemonTable
+ // Namespaces the page search param so paging can't move other tables sharing this URL.
+ id="pr-workflows"
dataSource={orderedRows}
columns={columns}
size="small"
@@ -630,6 +632,7 @@ function PrWorkflowsTable({
/>
),
}}
+ pagination={{ pageSize: 10 }}
emptyState="No CI runs match."
nouns={['workflow', 'workflows']}
/>
diff --git a/products/engineering_analytics/frontend/scenes/RepoOverviewScene.tsx b/products/engineering_analytics/frontend/scenes/RepoOverviewScene.tsx
index e09624b07249..f6fbda679c17 100644
--- a/products/engineering_analytics/frontend/scenes/RepoOverviewScene.tsx
+++ b/products/engineering_analytics/frontend/scenes/RepoOverviewScene.tsx
@@ -118,6 +118,8 @@ function MasterFailuresSection(): JSX.Element {
<Section id="now" title={`Failing on ${currentDefaultBranch}`} note="Last 24 hours">
<LemonCard hoverEffect={false} className="overflow-hidden p-0">
<LemonTable<MasterFailureGroupApi>
+ // Namespaces the page/order search params so paging can't move other tables sharing this URL.
+ id="master-failures"
dataSource={masterFailures}
loading={masterFailuresLoading}
embedded
@@ -218,6 +220,7 @@ function MasterFailuresSection(): JSX.Element {
),
},
]}
+ pagination={{ pageSize: 10 }}
emptyState={`Nothing failing on ${currentDefaultBranch} in the last 24 hours.`}
nouns={['failure group', 'failure groups']}
/>