From 1359838df488c39a7c4941adfc47b4910b38b040 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Wed, 3 Jul 2024 15:58:29 +0700 Subject: [PATCH] QFix: Revert missing pipeline configuration (#5987) Signed-off-by: Andrey Sobolev --- server/server-pipeline/src/pipeline.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/server/server-pipeline/src/pipeline.ts b/server/server-pipeline/src/pipeline.ts index da5933f324..654214f722 100644 --- a/server/server-pipeline/src/pipeline.ts +++ b/server/server-pipeline/src/pipeline.ts @@ -81,10 +81,11 @@ export function createServerPipeline ( [DOMAIN_BLOB]: 'StorageData', [DOMAIN_FULLTEXT_BLOB]: 'FullTextBlob', [DOMAIN_MODEL]: 'Null', - [DOMAIN_BENCHMARK]: 'Benchmark' + [DOMAIN_BENCHMARK]: 'Benchmark', + ...extensions?.domains }, metrics: wsMetrics, - defaultAdapter: 'Mongo', + defaultAdapter: extensions?.defaultAdapter ?? 'Mongo', adapters: { MongoTx: { factory: createMongoTxAdapter, @@ -113,9 +114,10 @@ export function createServerPipeline ( Benchmark: { factory: createBenchmarkAdapter, url: '' - } + }, + ...extensions?.adapters }, - fulltextAdapter: { + fulltextAdapter: extensions?.fulltextAdapter ?? { factory: createElasticAdapter, url: opt.fullTextUrl, stages: (adapter, storage, storageAdapter, contentAdapter) => @@ -131,7 +133,7 @@ export function createServerPipeline ( opt.indexProcessing ) }, - serviceAdapters: {}, + serviceAdapters: extensions?.serviceAdapters ?? {}, contentAdapters: { Rekoni: { factory: createRekoniAdapter, @@ -142,9 +144,10 @@ export function createServerPipeline ( factory: createYDocAdapter, contentType: 'application/ydoc', url: '' - } + }, + ...extensions?.contentAdapters }, - defaultContentAdapter: 'Rekoni', + defaultContentAdapter: extensions?.defaultContentAdapter ?? 'Rekoni', storageFactory: opt.externalStorage, workspace }