rez_core 3.1.4 → 3.1.6
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/module/filter/service/filter.service.js +2 -4
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/workflow/entity/action-category.entity.d.ts +1 -0
- package/dist/module/workflow/entity/action-category.entity.js +4 -0
- package/dist/module/workflow/entity/action-category.entity.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/filter/service/filter.service.ts +2 -7
- package/src/module/workflow/entity/action-category.entity.ts +3 -0
package/package.json
CHANGED
|
@@ -90,8 +90,6 @@ export class FilterService {
|
|
|
90
90
|
...savedFilters,
|
|
91
91
|
].filter((f) => f.filter_value !== '');
|
|
92
92
|
|
|
93
|
-
console.log(allFilters, 'ALL FILTERS');
|
|
94
|
-
|
|
95
93
|
// 🔹 Step 2: Group filters by filter_entity_type
|
|
96
94
|
const grouped = allFilters.reduce(
|
|
97
95
|
(acc, f) => {
|
|
@@ -102,7 +100,6 @@ export class FilterService {
|
|
|
102
100
|
{} as Record<string, any[]>,
|
|
103
101
|
);
|
|
104
102
|
|
|
105
|
-
console.log(grouped, 'GROUPED FILTERS');
|
|
106
103
|
// 🔹 Step 3: Handle sub-entities first
|
|
107
104
|
let intersectionIds: number[] | null = null;
|
|
108
105
|
for (const [subEntityType, filters] of Object.entries(grouped)) {
|
|
@@ -120,8 +117,6 @@ export class FilterService {
|
|
|
120
117
|
|
|
121
118
|
const subResult = await this.applyFilter(subDto);
|
|
122
119
|
|
|
123
|
-
console.log(subResult, 'SUB RESULT');
|
|
124
|
-
|
|
125
120
|
// ✅ new way (fetch source entity IDs via relation mapping)
|
|
126
121
|
const subEntityIds = subResult.data.entity_list.map((row) => row.id);
|
|
127
122
|
|
|
@@ -140,8 +135,6 @@ export class FilterService {
|
|
|
140
135
|
dto.loggedInUser.organization_id,
|
|
141
136
|
);
|
|
142
137
|
|
|
143
|
-
console.log(relatedIds, 'RELATED IDS');
|
|
144
|
-
|
|
145
138
|
// keep intersection
|
|
146
139
|
intersectionIds =
|
|
147
140
|
intersectionIds === null
|
|
@@ -237,9 +230,11 @@ export class FilterService {
|
|
|
237
230
|
);
|
|
238
231
|
|
|
239
232
|
// Get and parse saved filters
|
|
233
|
+
console.log('IN FILTER SERVICE', savedFilterCode);
|
|
240
234
|
const savedFilters = await this.getSavedFilters(
|
|
241
235
|
savedFilterCode ?? undefined,
|
|
242
236
|
);
|
|
237
|
+
console.log('SAVED FILTERS', savedFilters);
|
|
243
238
|
const savedFiltersNormalized = savedFilters.map((f) => ({
|
|
244
239
|
filter_attribute: f.filter_attribute,
|
|
245
240
|
filter_operator: f.filter_operator,
|