MCPcopy
hub / github.com/PostHog/posthog / aggregationLabel

Function aggregationLabel

frontend/src/scenes/insights/utils.test.ts:184–190  ·  view source on GitHub ↗
(groupTypeIndex: number | null | undefined)

Source from the content-addressed store, hash-verified

182
183describe('summarizeInsightFilters()', () => {
184 const aggregationLabel = (groupTypeIndex: number | null | undefined): Noun =>
185 groupTypeIndex != undefined
186 ? {
187 singular: 'organization',
188 plural: 'organizations',
189 }
190 : { singular: 'user', plural: 'users' }
191 const cohortIdsMapped: Partial<Record<CohortType['id'], CohortType>> = {
192 1: {
193 id: 1,

Callers 15

summarizeBreakdownFunction · 0.85
summarizeInsightFiltersFunction · 0.85
useWorldMapTooltipFunction · 0.85
useBoldNumberTooltipFunction · 0.85
PieChartFunction · 0.85
externalFunction · 0.85
AggregationSelectFunction · 0.85
groupLogic.tsFile · 0.85
groupsListLogic.tsFile · 0.85
RelatedGroupsFunction · 0.85
GroupsTabsFunction · 0.85
trendsLogic.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…