rez_core 3.1.13 → 3.1.14
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/package.json
CHANGED
|
@@ -90,6 +90,8 @@ export class FilterService {
|
|
|
90
90
|
...savedFilters,
|
|
91
91
|
].filter((f) => f.filter_value !== '');
|
|
92
92
|
|
|
93
|
+
console.log(allFilters,"STEP 1: ALL FILTERS");
|
|
94
|
+
|
|
93
95
|
// 🔹 Step 2: Group filters by filter_entity_type
|
|
94
96
|
const grouped = allFilters.reduce(
|
|
95
97
|
(acc, f) => {
|
|
@@ -100,6 +102,8 @@ export class FilterService {
|
|
|
100
102
|
{} as Record<string, any[]>,
|
|
101
103
|
);
|
|
102
104
|
|
|
105
|
+
console.log(grouped,"STEP 2: GROUPED FILTERS BY ENTITY TYPE");
|
|
106
|
+
|
|
103
107
|
// 🔹 Step 3: Handle sub-entities first
|
|
104
108
|
let intersectionIds: number[] | null = null;
|
|
105
109
|
for (const [subEntityType, filters] of Object.entries(grouped)) {
|
|
@@ -150,6 +154,8 @@ export class FilterService {
|
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
156
|
|
|
157
|
+
console.log(intersectionIds,"STEP 3: INTERSECTION IDS FOR MAIN ENTITY");
|
|
158
|
+
|
|
153
159
|
// 🔹 Step 4: Call applyFilter for main entity
|
|
154
160
|
const mainFilters = grouped[entity_type] || [];
|
|
155
161
|
const mainDto: FilterRequestDto = {
|
|
@@ -253,6 +259,8 @@ export class FilterService {
|
|
|
253
259
|
),
|
|
254
260
|
];
|
|
255
261
|
|
|
262
|
+
console.log(baseFilters,"STEP 1B: BASE FILTERS FOR MAIN ENTITY");
|
|
263
|
+
|
|
256
264
|
// Build where clauses
|
|
257
265
|
const baseWhere = this.buildWhereClauses(baseFilters, attributeMetaMap);
|
|
258
266
|
|