MCPcopy Index your code

hub / github.com/lightdash/lightdash / functions

Functions15,420 in github.com/lightdash/lightdash

↓ 2,166 callersFunctiontest
()
packages/common/src/utils/convertCustomDimensionsToYaml.ts:122
↓ 1,747 callersMethodget
(key: string)
packages/backend/src/ee/services/SandboxRuntime/SnapshotStore.ts:19
↓ 1,484 callersMethodpush
Push a branch from the repo at `path`, authenticating over HTTPS.
packages/backend/src/ee/services/SandboxRuntime/types.ts:121
↓ 974 callersMethodcan
(action: string, subject: AuditableCaslSubject)
packages/backend/src/logging/caslAuditWrapper.ts:292
↓ 779 callersMethodfind
( filters: { projectUuid?: string; projectUuids?: string[]; spaceU
packages/backend/src/models/SpaceModel.ts:131
↓ 730 callersMethoderror
(message: string)
packages/backend/src/ee/services/SandboxRuntime/types.ts:13
↓ 594 callersMethodhas
(eventType: AiAgentReviewRemediationEventType)
packages/backend/src/ee/services/AiAgentAdminService.ts:2275
↓ 592 callersMethodinfo
(message: string)
packages/backend/src/ee/services/SandboxRuntime/types.ts:10
↓ 506 callersMethodfrom
* Creates a validated AgentContext from unknown context * * @param context - Raw context from experimental_context * @returns AgentCont
packages/backend/src/ee/services/ai/utils/AgentContext.ts:34
↓ 501 callersFunctionlightdashApi
({ method, url, body, headers, version = 'v1', signal, }: LightdashApiProps)
packages/frontend/src/api.ts:147
↓ 496 callersFunctiongetItemId
( item: ItemsMap[string] | AdditionalMetric | Pick<Field, 'name' | 'table'>, )
packages/common/src/utils/item.ts:52
↓ 489 callersMethodcannot
(action: string, subject: AuditableCaslSubject)
packages/backend/src/logging/caslAuditWrapper.ts:318
↓ 484 callersFunctionassertRegisteredAccount
( account: Account | undefined, )
packages/common/src/types/auth.ts:238
↓ 478 callersMethodreplace
( projectUuid: string, parameters: Required<LightdashProjectConfig>['parameters'], )
packages/backend/src/models/ProjectParametersModel.ts:139
↓ 473 callersMethoddelete
( user: SessionUser, uuid: string, options?: SoftDeleteOptions, )
packages/backend/src/services/SoftDeletableService.ts:25
↓ 446 callersMethodinsert
(data: ProjectCompileLogInsert)
packages/backend/src/models/ProjectCompileLogModel.ts:28
↓ 436 callersMethoddebug
(message: string)
packages/backend/src/ee/services/SandboxRuntime/types.ts:12
↓ 427 callersFunctiontoSessionUser
(account: RegisteredAccount)
packages/backend/src/auth/account/account.ts:183
↓ 417 callersFunctiongetErrorMessage
(e: unknown)
packages/common/src/types/errors.ts:588
↓ 397 callersMethodtoString
(options?: { quoteChar?: `'` | `"` })
packages/common/src/dbt/DbtSchemaEditor/DbtSchemaEditor.ts:433
↓ 353 callersMethodtrack
(payload: TypedEvent | UntypedEvent<T>)
packages/backend/src/analytics/LightdashAnalytics.ts:2571
↓ 338 callersMethodwarn
(message: string)
packages/backend/src/ee/services/SandboxRuntime/types.ts:11
↓ 332 callersFunctiondispatch
(data: unknown, source: MessageEventSource | null)
packages/query-sdk/src/externalFetch.test.ts:198
↓ 326 callersFunctionuseToaster
()
packages/frontend/src/hooks/toaster/useToaster.tsx:25
↓ 322 callersFunctionassertUnreachable
(_x: never, error: string | Error)
packages/common/src/utils/assertUnreachable.ts:1
↓ 292 callersMethodadd
Stage changes in the repo at `path`.
packages/backend/src/ee/services/SandboxRuntime/types.ts:113
↓ 278 callersFunctionuseDashboardContext
( selector: (value: DashboardContextType) => Selected, )
packages/frontend/src/providers/Dashboard/useDashboardContext.ts:5
↓ 271 callersMethodon
(event: string | symbol, listener: (...args: AnyType[]) => void)
packages/backend/src/scheduler/SchedulerWorkerEventEmitter.ts:15
↓ 259 callersMethodlog
(message: unknown, ...optionalParams: unknown[])
packages/cli/src/globalState.ts:51
↓ 224 callersMethodpost
( @Path() projectUuid: string, @Path() pinnedListUuid: string, @Request() req: express
packages/backend/src/controllers/pinningController.ts:80
↓ 214 callersMethodgetSummary
(savedChartUuid: string)
packages/backend/src/models/SavedChartModel.ts:1764
↓ 194 callersFunctionuseApp
()
packages/frontend/src/providers/App/useApp.ts:5
↓ 188 callersFunctionformatItemValue
( item: | Field | Dimension | AdditionalMetric | TableCalculation
packages/common/src/utils/formatting.ts:1190
↓ 184 callersMethodtest
()
packages/backend/src/types.ts:69
↓ 169 callersFunctioncompile
(formula: string, options: CompileOptions)
packages/formula/src/index.ts:52
↓ 160 callersMethodtoSql
()
packages/backend/src/utils/QueryBuilder/SqlQueryBuilder.ts:263
↓ 159 callersMethodtoBeInTheDocument
()
packages/frontend/src/@types/jest-dom-vitest-fast.d.ts:7
↓ 152 callersMethodbuild
Convert to a plain QueryDefinition object
packages/query-sdk/src/query.ts:166
↓ 148 callersMethodresolve
(absPath: string)
packages/backend/src/ee/services/ai/repoFs/mountingRepoFileSystem.ts:291
↓ 145 callersFunctionapplyCustomFormat
( value: unknown, format?: CustomFormat | undefined, timezone?: string, )
packages/common/src/utils/formatting.ts:789
↓ 143 callersFunctionisField
(field: AnyType)
packages/common/src/types/field.ts:631
↓ 141 callersMethodcreate
(spec: SandboxSpec)
packages/backend/src/ee/services/SandboxRuntime/types.ts:194
↓ 140 callersFunctionisDimension
( field: ItemsMap[string] | AdditionalMetric | undefined, // NOTE: `ItemsMap converts AdditionalMetric to
packages/common/src/types/field.ts:819
↓ 131 callersMethodjsonb
(value: unknown)
packages/backend/src/ee/models/AiAgentReviewClassifierModel.ts:524
↓ 130 callersMethodfind
( user: SessionUser, filters: ContentFilters, queryArgs: ContentArgs, paginate
packages/backend/src/services/ContentService/ContentService.ts:109
↓ 129 callersFunctiongenerateSlug
(name: string)
packages/common/src/utils/slugs.ts:15
↓ 128 callersMethodupdate
(tagUuid: string, tagUpdate: DbTagUpdate)
packages/backend/src/models/TagsModel.ts:31
↓ 127 callersFunctionparse
(formula: string)
packages/formula/src/compiler/index.ts:5
↓ 121 callersFunctionbuildQuery
( args: Omit<BuildQueryProps, 'parameterDefinitions'>, )
packages/backend/src/utils/QueryBuilder/MetricQueryBuilder.test.ts:85
↓ 117 callersMethodrun
* Run a shell command. Resolves with the command result on a zero exit and * throws {@link SandboxCommandError} on any non-zero exit (matching E2
packages/backend/src/ee/services/SandboxRuntime/types.ts:37
↓ 115 callersMethodfind
(uuid: string)
packages/backend/src/ee/models/AiAgentDocumentModel.ts:102
↓ 110 callersMethodvisit
(metricId: string)
packages/backend/src/utils/QueryBuilder/MetricQueryBuilder.ts:3490
↓ 107 callersFunctionresolve
( service: AiWritebackService, args: { prompt?: string; dbtSourceUuid?
packages/backend/src/ee/services/AiWritebackService/AiWritebackService.test.ts:531
↓ 106 callersMethodgetProjectService
()
packages/backend/src/services/ServiceRepository.ts:762
↓ 105 callersMethodtransaction
( callback: (tx: Knex.Transaction) => Promise<T>, )
packages/backend/src/models/SavedChartModel.ts:532
↓ 104 callersFunctionparseTableCalculationFunctions
( sql: string, )
packages/common/src/utils/tableCalculationFunctions.ts:208
↓ 104 callersFunctiontrack
(calls: string[])
packages/formula/tests/codegen.test.ts:1095
↓ 103 callersMethodpost
( url: string, body?: unknown, options?: Omit<RequestOptions, 'method' | 'body'>,
packages/api-tests/helpers/api-client.ts:106
↓ 97 callersMethodlogSchedulerJob
(log: CreateSchedulerLog)
packages/backend/src/services/SchedulerService/SchedulerService.ts:1343
↓ 96 callersFunctionfriendlyName
(text: string)
packages/common/src/types/field.ts:1070
↓ 96 callersFunctionreplaceWhitespace
(str: string)
packages/backend/src/utils/QueryBuilder/PivotQueryBuilder.test.ts:44
↓ 90 callersFunctionpeg$fail
(expected)
packages/common/src/types/filterGrammar.parser.ts:564
↓ 89 callersMethodupdate
({ serviceAccountUuid, data, }: { serviceAccountUuid: string; data: Update
packages/backend/src/ee/models/ServiceAccountModel.ts:300
↓ 87 callersMethodgetService
* Handles initializing a service, and taking into account service * providers + memoization. * * If a factory is not provided, and a se
packages/backend/src/services/ServiceRepository.ts:1570
↓ 86 callersMethodgetModel
* Handles initializing a model, and taking into account model * providers + memoization. * * If a factory is not provided, and a model
packages/backend/src/models/ModelRepository.ts:903
↓ 86 callersFunctionlogin
()
packages/api-tests/helpers/auth.ts:22
↓ 85 callersFunctionbuildAbilityFromScopes
( context: BuilderOptions, builder: AbilityBuilder<MemberAbility>, )
packages/common/src/authorization/scopeAbilityBuilder.ts:100
↓ 84 callersFunctionrenderDateFilterSql
({ dimensionSql, filter, adapterType, timezone, boundaryDateFormatter, startOfWeek,
packages/common/src/compiler/filtersCompiler.ts:629
↓ 81 callersMethodfor
( runtime: ToolRuntime, )
packages/common/src/ee/AiAgent/schemas/toolDefinitionWithMcpOutput.ts:94
↓ 81 callersMethodgetAiAgentService
()
packages/backend/src/ee/controllers/aiAgentController.ts:2005
↓ 81 callersMethodgetSpaceAccessContext
* Returns the CASL context for a space (organizationUuid, projectUuid, inheritsFromOrgOrProject, access) * without performing any permission chec
packages/backend/src/services/SpaceService/SpacePermissionService.ts:98
↓ 78 callersFunctionrenderWithProviders
( ui: ReactElement<any>, appMocks?: AppProviderMockProps['mocks'], options?: RenderOptions<Q, Cont
packages/frontend/src/testing/testUtils.tsx:43
↓ 74 callersFunctionuseTracking
({ failSilently, }: { failSilently?: S; } = {})
packages/frontend/src/providers/Tracking/useTracking.ts:5
↓ 74 callersFunctionwrapSentryTransaction
( name: string, context: CustomSamplingContext, funct: (span: Sentry.Span) => Promise<T>, )
packages/backend/src/utils.ts:31
↓ 73 callersFunctionconvertTable
( adapterType: SupportedDbtAdapter, model: DbtModelNode, dbtMetrics: DbtMetric[], spotlightCon
packages/common/src/compiler/translator.ts:714
↓ 73 callersFunctionuseProject
( id: string | undefined, options?: UseQueryOptions<Project, ApiError>, )
packages/frontend/src/hooks/useProject.ts:73
↓ 73 callersFunctionuseServerFeatureFlag
(featureFlagId: string)
packages/frontend/src/hooks/useServerOrClientFeatureFlag.ts:10
↓ 72 callersMethodpatch
( @Path() schedulerUuid: string, @Request() req: express.Request, @Body() body: AnyTyp
packages/backend/src/controllers/schedulerController.ts:429
↓ 72 callersMethodreadFile
File content as UTF-8, or null if missing/too large/binary.
packages/backend/src/ee/services/ai/repoFs/RepoFs.ts:25
↓ 70 callersFunctionbuildQuery
( args: Omit< BuildQueryProps, | 'parameterDefinitions' | 'intrinsicUserAttributes
packages/backend/src/utils/QueryBuilder/metricQueryBuilderSnapshots/helpers.ts:15
↓ 69 callersFunctiondefineTool
( def: | ToolDefinitionArgsWithoutMcpOutput< TName, TInput,
packages/common/src/ee/AiAgent/schemas/defineTool.ts:308
↓ 69 callersMethodrequest
( urlOrPath: string, options: RequestOptions = {}, )
packages/api-tests/helpers/api-client.ts:44
↓ 68 callersFunctionuseVisualizationContext
()
packages/frontend/src/components/LightdashVisualization/useVisualizationContext.ts:4
↓ 67 callersMethodsend
Send a request, re-minting the bearer once on a 401/403 and retrying.
packages/backend/src/ee/services/SandboxRuntime/LambdaExecChannel.ts:169
↓ 66 callersMethodcan
* Checks if the user has access to all the space uuids * @param action - The action to check permissions for * @param user - The session use
packages/backend/src/services/SpaceService/SpacePermissionService.ts:50
↓ 65 callersMethodlog
(message: string)
packages/backend/src/ee/services/ai/AiAgentMcpRuntimeClient.ts:1020
↓ 64 callersFunctionisExploreError
( explore: Explore | ExploreError, )
packages/common/src/types/explore.ts:144
↓ 64 callersMethodmerge
( internalizationMap: ReturnType<this['getLanguageMap']>['chart'][string], content: ChartAsCod
packages/common/src/utils/i18n/chartAsCode.ts:162
↓ 63 callersFunctionisCustomDimension
(value: AnyType)
packages/common/src/types/field.ts:305
↓ 63 callersFunctionparseConfig
()
packages/backend/src/config/parseConfig.ts:2074
↓ 62 callersMethoddelete
(key: string)
packages/backend/src/ee/services/SandboxRuntime/SnapshotStore.ts:20
↓ 62 callersMethodstatus
Parse the working-tree status of the repo at `path`.
packages/backend/src/ee/services/SandboxRuntime/types.ts:109
↓ 62 callersFunctiontool
(name: string, props: Record<string, string> = {}, required: string[] = [])
scripts/mcp-tools-diff.test.ts:24
↓ 61 callersMethodcompileExplore
({ name, label, tags, baseTable, joinedTables, tables,
packages/common/src/compiler/exploreCompiler.ts:375
↓ 61 callersMethodgetFieldQuoteChar
()
packages/warehouses/src/warehouseClients/BigqueryWarehouseClient.ts:157
↓ 61 callersFunctionuniqueName
(base: string)
packages/api-tests/helpers/test-isolation.ts:11
↓ 60 callersFunctionisMetric
( field: ItemsMap[string] | AdditionalMetric | undefined, )
packages/common/src/types/field.ts:942
↓ 60 callersMethodlimit
Set the maximum number of rows to return (default: 500)
packages/query-sdk/src/query.ts:161
↓ 60 callersMethodwrite
Write a text or binary file, creating parent directories as needed.
packages/backend/src/ee/services/SandboxRuntime/types.ts:47
↓ 59 callersMethodgetAgent
( user: SessionUser, agentUuid: string, projectUuid?: string, options?: { incl
packages/backend/src/ee/services/AiAgentService/AiAgentService.ts:1909
next →1–100 of 15,420, ranked by callers