{"record":{"id":"a1efb50e91fb188b","repo":"hcengineering/platform","slug":"unsupported","errorCode":null,"errorMessage":"unsupported","messagePattern":"unsupported","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"foundations/server/packages/core/src/utils.ts","lineNumber":378,"sourceCode":"      return (await storageAdapter.findAll(ctx, _class, query, options)) as any\n    }\n\n    async domainRequest<T>(domain: OperationDomain, params: DomainParams): Promise<DomainResult<T>> {\n      return { domain, value: null as any }\n    }\n\n    async tx (tx: Tx): Promise<TxResult> {\n      return await storageAdapter.tx(ctx, tx)\n    }\n\n    async searchFulltext (): Promise<SearchResult> {\n      return { docs: [] }\n    }\n\n    async close (): Promise<void> {}\n\n    async loadChunk (domain: Domain): Promise<DocChunk> {\n      throw new Error('unsupported')\n    }\n\n    async getDomainHash (domain: Domain): Promise<string> {\n      return await storageAdapter.getDomainHash(ctx, domain)\n    }\n\n    async closeChunk (idx: number): Promise<void> {}\n\n    async loadDocs (domain: Domain, docs: Ref<Doc>[]): Promise<Doc[]> {\n      return []\n    }\n\n    async upload (domain: Domain, docs: Doc[]): Promise<void> {}\n\n    async clean (domain: Domain, docs: Ref<Doc>[]): Promise<void> {}\n\n    async loadModel (): Promise<Tx[]> {\n      return txes","sourceCodeStart":360,"sourceCodeEnd":396,"githubUrl":"https://github.com/hcengineering/platform/blob/63e28dc96483967b2fc21c881b3f1023c1de7718/foundations/server/packages/core/src/utils.ts#L360-L396","documentation":"This is a stub/placeholder storage adapter method: loadChunk on the no-op adapter explicitly throws Error('unsupported') to signal that chunked loading is not implemented for this adapter.","triggerScenarios":"Calling loadChunk (via a wrapped pipeline client) when the pipeline was constructed with the dummy/empty storage adapter rather than a real storage-backed adapter.","commonSituations":"Using a dry-run or in-memory pipeline mode that intentionally lacks loadChunk; invoking backup/migration operations against an empty adapter; unit tests using the stub and accidentally exercising loadChunk.","solutions":["Use a real storage-backed storage adapter instead of the stub","Avoid calling loadChunk paths (e.g. data export) on the dummy adapter","If writing tests, mock loadChunk or skip chunked-loading code paths"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":"function supportsLoadChunk(a: StorageAdapter): a is StorageAdapter & { loadChunk: NonNullable<StorageAdapter['loadChunk']> } {\n  return typeof (a as any).loadChunk === 'function' && !(a instanceof DummyStorageAdapter)\n}","tryCatchPattern":"try {\n  const chunk = await adapter.loadChunk(domain)\n} catch (err) {\n  if (err instanceof Error && err.message === 'unsupported') {\n    // skip chunked path or swap in a real storage adapter\n  } else throw err\n}","preventionTips":["Don't use the dummy/stub storage adapter in production pipelines","Gate chunked-loading code paths behind a capability check","Document stub adapter limitations in tests to avoid accidental use"],"tags":["unsupported-operation","storage","stub"],"backgroundTag":"unsupported-operation","analyzedSha":"63e28dc96483967b2fc21c881b3f1023c1de7718","analyzedAt":"2026-08-29T15:21:27.377Z","schemaVersion":2},"datasetVersion":"2026-08-29T17:17:51.833Z"}