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(data-warehouse): release SQL insight version history to all users (#74589)

Anna Szellf3339f40409b
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 79f7fd05d680..ed7390c6ef33 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -480,7 +480,6 @@ export const FEATURE_FLAGS = {
SHOW_REPLAY_FILTERS_FEEDBACK_BUTTON: 'show-replay-filters-feedback-button', // owner: @ksvat #team-replay
SIGNUP_AA_TEST_4_WAY: 'signup-aa-test-4-way', // owner: @andehen #team-experiments multivariate=control,test-1,test-2,test-3
SLACK_DWH: 'slack-dwh', // owner: @MarconLP #team-warehouse-sources
- SQL_EDITOR_QUERY_HISTORY: 'sql-editor-query-history', // owner: @annaszell #team-data-tools
SQL_EDITOR_VIM_MODE: 'sql-editor-vim-mode', // owner: @arthurdedeus
SSE_DASHBOARDS: 'sse-dashboards', // owner: @aspicer #team-analytics-platform
STREAMLIT_APPS: 'streamlit-apps', // owner: @sakce
diff --git a/frontend/src/scenes/data-warehouse/editor/SQLEditor.tsx b/frontend/src/scenes/data-warehouse/editor/SQLEditor.tsx
index a3d5326d9100..81af481f3edc 100644
--- a/frontend/src/scenes/data-warehouse/editor/SQLEditor.tsx
+++ b/frontend/src/scenes/data-warehouse/editor/SQLEditor.tsx
@@ -639,17 +639,15 @@ function SQLEditorSceneTitle(): JSX.Element | null {
</>
) : editingInsight ? (
<>
- {featureFlags[FEATURE_FLAGS.SQL_EDITOR_QUERY_HISTORY] && (
- <LemonButton
- onClick={() => openHistoryModal()}
- icon={<IconBook />}
- type="secondary"
- size="small"
- data-attr="sql-editor-insight-history-button"
- >
- History
- </LemonButton>
- )}
+ <LemonButton
+ onClick={() => openHistoryModal()}
+ icon={<IconBook />}
+ type="secondary"
+ size="small"
+ data-attr="sql-editor-insight-history-button"
+ >
+ History
+ </LemonButton>
<LemonButton
disabledReason={
!isSourceQueryLastRun