@mohasinac/appkit 4.12.2 → 4.12.3
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.
|
@@ -136,7 +136,16 @@ export async function applySieveToFirestore(params) {
|
|
|
136
136
|
const merged = { ...SIEVE_DEFAULTS, ...rest };
|
|
137
137
|
const effective = withAliasesExpanded(model, aliases);
|
|
138
138
|
const processor = new SieveProcessorBase({
|
|
139
|
-
adapter
|
|
139
|
+
// MUST be the enhanced adapter, not the stock one. This is the path
|
|
140
|
+
// `BaseRepository.sieveQuery` delegates to, so it is what ProductRepository
|
|
141
|
+
// and most other repositories actually run — only `FirebaseSieveRepository`
|
|
142
|
+
// used the enhanced adapter, and nothing extends that. With the stock
|
|
143
|
+
// adapter a same-field OR group (`listingType==art|stickers`, i.e. every
|
|
144
|
+
// multi-select facet in the app) became a `whereOr` call the Admin SDK does
|
|
145
|
+
// not implement; `throwExceptions: false` then swallowed it and the clause
|
|
146
|
+
// vanished, returning the ENTIRE collection instead of the selected subset.
|
|
147
|
+
// See __tests__/sieve-or-group.test.ts.
|
|
148
|
+
adapter: createEnhancedFirebaseAdapter(),
|
|
140
149
|
autoLoadConfig: false,
|
|
141
150
|
options: merged,
|
|
142
151
|
fields,
|