Skip to content

Commit

Permalink
Move suppressSessionAnalysisWarning to insightViz
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Nov 9, 2023
1 parent b44b19b commit 76f88e0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions frontend/src/queries/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ interface InsightVizNodeViewProps {
showResults?: boolean
/** Query is embedded inside another bordered component */
embedded?: boolean
suppressSessionAnalysisWarning?: boolean
}

/** Base class for insight query nodes. Should not be used directly. */
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/scenes/insights/insightVizDataLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ export const insightVizDataLogic = kea<insightVizDataLogicType>([
},
],
shouldShowSessionAnalysisWarning: [
(s) => [s.isUsingSessionAnalysis, (_, p) => p.suppressSessionAnalysisWarning],
(isUsingSessionAnalysis, suppressSessionAnalysisWarning) =>
isUsingSessionAnalysis && !suppressSessionAnalysisWarning,
(s) => [s.isUsingSessionAnalysis, s.query],
(isUsingSessionAnalysis, query) =>
isUsingSessionAnalysis && !(isInsightVizNode(query) && query.suppressSessionAnalysisWarning),
],
isNonTimeSeriesDisplay: [
(s) => [s.display],
Expand Down
1 change: 0 additions & 1 deletion frontend/src/scenes/web-analytics/WebAnalyticsTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ export const WebStatsTrendTile = ({ query }: { query: InsightVizNode }): JSX.Ele
},
},
hidePersonsModal: true,
suppressSessionAnalysisWarning: true,
},
}
}, [onWorldMapClick])
Expand Down
1 change: 1 addition & 0 deletions frontend/src/scenes/web-analytics/webAnalyticsLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
filterTestAccounts: true,
properties: webAnalyticsFilters,
},
suppressSessionAnalysisWarning: true,
},
},
],
Expand Down
1 change: 0 additions & 1 deletion frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,6 @@ export interface InsightLogicProps {
setQuery?: (node: InsightVizNode) => void

hidePersonsModal?: boolean
suppressSessionAnalysisWarning?: boolean
/** chart-specific rendering context **/
chartRenderingMetadata?: ChartRenderingMetadata
}
Expand Down

0 comments on commit 76f88e0

Please sign in to comment.