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(product-analytics): remove sql-box-plot-insight flag (#95683)

Paul D'Ambrabc67ae3e3c10
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index b667c8f9ff2c..4f020439b30c 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -200,7 +200,6 @@ export const FEATURE_FLAGS = {
PERSON_PROPERTY_INCIDENT_ANNOTATION_JAN_2026: 'person-property-incident-annotation-jan-2026', // owner: #team-platform-features, shows system annotation for Jan 6-7 2026 person property incident
REPLAY_EXCLUDE_FROM_HIDE_RECORDINGS_MENU: 'replay-exclude-from-hide-recordings-menu', // owner: #team-replay, used to exclude what other people are seeing in Replay
SHOW_UPGRADE_TO_MANAGED_ACCOUNT: 'show-upgrade-to-managed-account', // owner: #team-billing, used to give free accounts a way to force upgrade to managed account
- SQL_BOX_PLOT_INSIGHT: 'sql-box-plot-insight', // owner: @pauldambra #team-product-analytics
WEBHOOKS_DENYLIST: 'webhooks-denylist', // owner: #team-ingestion, used to disable webhooks for certain companies
// Legacy flags, TBD if they need to be removed
diff --git a/frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.test.tsx b/frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.test.tsx
index c4599c78ec3b..90a8933f1e6e 100644
--- a/frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.test.tsx
+++ b/frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.test.tsx
@@ -4,9 +4,6 @@ import { cleanup, render, screen, waitFor } from '@testing-library/react'
import userEvent from '@testing-library/user-event'
import { BindLogic } from 'kea'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
-
import { DataVisualizationNode, HogQLQueryResponse, NodeKind } from '~/queries/schema/schema-general'
import { initKeaTests } from '~/test/init'
import { ChartDisplayType } from '~/types'
@@ -32,15 +29,10 @@ const cachedResults: HogQLQueryResponse = {
describe('TableDisplay', () => {
afterEach(() => {
cleanup()
- featureFlagLogic.unmount()
})
- it('offers box plots and saves the selected display when the feature is enabled', async () => {
+ it('offers box plots and saves the selected display', async () => {
initKeaTests()
- featureFlagLogic.mount()
- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.SQL_BOX_PLOT_INSIGHT], {
- [FEATURE_FLAGS.SQL_BOX_PLOT_INSIGHT]: true,
- })
let query: DataVisualizationNode = {
kind: NodeKind.DataVisualizationNode,
diff --git a/frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.tsx b/frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.tsx
index 922f49a6b003..3deb9b306142 100644
--- a/frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.tsx
+++ b/frontend/src/queries/nodes/DataVisualization/Components/TableDisplay.tsx
@@ -3,9 +3,7 @@ import { useActions, useValues } from 'kea'
import { IconGraph, IconLifecycle, IconPieChart, IconScatter, IconTrends } from '@posthog/icons'
import { LemonSelect, LemonSelectOptions, LemonSelectProps } from '@posthog/lemon-ui'
-import { FEATURE_FLAGS } from 'lib/constants'
import { Icon123, IconAreaChart, IconHeatmap, IconTableChart } from 'lib/lemon-ui/icons'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { ChartDisplayType } from '~/types'
@@ -48,8 +46,7 @@ export function getTableDisplayOptions(
columns: Column[],
numericalColumns: Column[],
autoVisualizationType: ChartDisplayType,
- disabledReasonFor?: (displayType: ChartDisplayType) => string | undefined,
- showBoxPlot = false
+ disabledReasonFor?: (displayType: ChartDisplayType) => string | undefined
): LemonSelectOptions<ChartDisplayType> {
const canDisplayContinuousChart = columns.length > 1 && numericalColumns.length > 0
const canDisplayScatterPlot = numericalColumns.length > 1
@@ -122,17 +119,12 @@ export function getTableDisplayOptions(
? 'Requires at least two numeric columns, one for each axis'
: undefined,
},
- ...(showBoxPlot
- ? [
- {
- value: ChartDisplayType.BoxPlot,
- icon: <IconGraph />,
- label: 'Box plot',
- disabledReason:
- numericalColumns.length < 6 ? 'Requires six numeric summary columns' : undefined,
- },
- ]
- : []),
+ {
+ value: ChartDisplayType.BoxPlot,
+ icon: <IconGraph />,
+ label: 'Box plot',
+ disabledReason: numericalColumns.length < 6 ? 'Requires six numeric summary columns' : undefined,
+ },
{
value: ChartDisplayType.TwoDimensionalHeatmap,
icon: <IconHeatmap />,
@@ -173,7 +165,6 @@ export const TableDisplay = ({
}: TableDisplayProps): JSX.Element => {
const { setVisualizationType } = useActions(dataVisualizationLogic)
const { autoVisualizationType, columns, numericalColumns, visualizationType } = useValues(dataVisualizationLogic)
- const { featureFlags } = useValues(featureFlagLogic)
return (
<LemonSelect
@@ -184,13 +175,7 @@ export const TableDisplay = ({
loading={loading}
onChange={setVisualizationType}
optionTooltipPlacement="left"
- options={getTableDisplayOptions(
- columns,
- numericalColumns,
- autoVisualizationType,
- disabledReasonFor,
- !!featureFlags[FEATURE_FLAGS.SQL_BOX_PLOT_INSIGHT]
- )}
+ options={getTableDisplayOptions(columns, numericalColumns, autoVisualizationType, disabledReasonFor)}
renderButtonContent={() => renderDisplayTypeLabel(visualizationType, autoVisualizationType)}
size="small"
value={visualizationType}
diff --git a/frontend/src/scenes/insights/stories/SQLBoxPlot.stories.tsx b/frontend/src/scenes/insights/stories/SQLBoxPlot.stories.tsx
index 0e53149030ce..693fcdecc6ce 100644
--- a/frontend/src/scenes/insights/stories/SQLBoxPlot.stories.tsx
+++ b/frontend/src/scenes/insights/stories/SQLBoxPlot.stories.tsx
@@ -3,7 +3,6 @@ import { waitFor } from '@testing-library/dom'
import userEvent from '@testing-library/user-event'
import { useEffect, useRef } from 'react'
-import { FEATURE_FLAGS } from 'lib/constants'
import { createInsightStory } from 'scenes/insights/__mocks__/createInsightScene'
import { mswDecorator } from '~/mocks/browser'
@@ -50,7 +49,6 @@ const meta: Meta = {
title: 'Scenes-App/Insights/SQLBoxPlot',
parameters: {
layout: 'fullscreen',
- featureFlags: [FEATURE_FLAGS.SQL_BOX_PLOT_INSIGHT],
testOptions: {
snapshotBrowsers: ['chromium'],
viewport: { width: 1300, height: 720 },