@open-mercato/core 0.10.1-develop.7825.1.185c04f3b7 → 0.10.1-develop.7827.1.5c631908e4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/query_index/lib/engine.js +14 -3
- package/dist/modules/query_index/lib/engine.js.map +2 -2
- package/dist/modules/wms/components/backend/ReleaseReservationDialog.js +33 -19
- package/dist/modules/wms/components/backend/ReleaseReservationDialog.js.map +2 -2
- package/package.json +7 -7
- package/src/modules/query_index/lib/engine.ts +13 -2
- package/src/modules/wms/components/backend/ReleaseReservationDialog.tsx +8 -2
|
@@ -341,12 +341,17 @@ class HybridQueryEngine {
|
|
|
341
341
|
const applyAfterExtensions = async (queryResult) => {
|
|
342
342
|
if (!ext || !hybridExtCtx) return queryResult;
|
|
343
343
|
const diCtx = ext.resolve ? { resolve: ext.resolve } : noopDi;
|
|
344
|
-
|
|
344
|
+
const ciphertextSearchWarnings = queryResult.meta?.ciphertextSearchWarnings;
|
|
345
|
+
const result = await runAfterQueryPipeline(
|
|
345
346
|
queryResult,
|
|
346
347
|
opts,
|
|
347
348
|
hybridExtCtx,
|
|
348
349
|
diCtx
|
|
349
350
|
);
|
|
351
|
+
if (ciphertextSearchWarnings?.length) {
|
|
352
|
+
result.meta = { ...result.meta, ciphertextSearchWarnings };
|
|
353
|
+
}
|
|
354
|
+
return result;
|
|
350
355
|
};
|
|
351
356
|
try {
|
|
352
357
|
const debugEnabled = this.isDebugVerbosity();
|
|
@@ -558,6 +563,7 @@ class HybridQueryEngine {
|
|
|
558
563
|
searchRuntime.encryptedFields = null;
|
|
559
564
|
}
|
|
560
565
|
}
|
|
566
|
+
const ciphertextSearchWarnings = [];
|
|
561
567
|
if (searchFilters.length) {
|
|
562
568
|
this.logSearchDebug("search:init", {
|
|
563
569
|
entity,
|
|
@@ -594,7 +600,8 @@ class HybridQueryEngine {
|
|
|
594
600
|
// `searchEnabled` also folds in the missing-table case, which is
|
|
595
601
|
// "no usable tokens" rather than "the operator switched search off".
|
|
596
602
|
reason: searchRuntime.enabled ? "no-indexable-tokens" : searchConfig.enabled ? "no-search-tokens" : "search-disabled",
|
|
597
|
-
service: this.getEncryptionService()
|
|
603
|
+
service: this.getEncryptionService(),
|
|
604
|
+
onDiagnostic: (warning) => ciphertextSearchWarnings.push(warning)
|
|
598
605
|
});
|
|
599
606
|
}
|
|
600
607
|
}
|
|
@@ -611,7 +618,8 @@ class HybridQueryEngine {
|
|
|
611
618
|
fields: fallbackFields,
|
|
612
619
|
tenantId: opts.tenantId ?? null,
|
|
613
620
|
reason: hasJoinedTokens ? "no-indexable-tokens" : searchConfig.enabled ? "no-search-tokens" : "search-disabled",
|
|
614
|
-
service: this.getEncryptionService()
|
|
621
|
+
service: this.getEncryptionService(),
|
|
622
|
+
onDiagnostic: (warning) => ciphertextSearchWarnings.push(warning)
|
|
615
623
|
});
|
|
616
624
|
}
|
|
617
625
|
const hasNonBaseSearchSource = searchSources.some(
|
|
@@ -1292,6 +1300,9 @@ class HybridQueryEngine {
|
|
|
1292
1300
|
result.meta = meta;
|
|
1293
1301
|
}
|
|
1294
1302
|
result = await applyAfterExtensions(result);
|
|
1303
|
+
if (ciphertextSearchWarnings.length) {
|
|
1304
|
+
result.meta = { ...result.meta, ciphertextSearchWarnings };
|
|
1305
|
+
}
|
|
1295
1306
|
finishProfile({
|
|
1296
1307
|
result: "ok",
|
|
1297
1308
|
total,
|