rez_core 2.1.27 → 2.1.28

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.1.27",
3
+ "version": "2.1.28",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -25,6 +25,7 @@ export class FilterService {
25
25
  column: string | undefined,
26
26
  whereClauses: { query: string; params: Record<string, any> }[],
27
27
  ) {
28
+ console.log('GTETABCOUNTS', tableName, column, whereClauses);
28
29
  if (!column) return [];
29
30
 
30
31
  let whereSQL = '';
@@ -95,6 +96,8 @@ export class FilterService {
95
96
  'LIST',
96
97
  );
97
98
 
99
+ console.log(getTableMeta, 'GETTABLEMETA');
100
+
98
101
  if (!getTableMeta) {
99
102
  throw new BadRequestException(
100
103
  `Table meta not found for entity_type: ${entity_type}`,
@@ -107,6 +110,7 @@ export class FilterService {
107
110
  true,
108
111
  );
109
112
 
113
+ console.log(getTableColumnMeta, 'GETTABLECOLUMNMETA');
110
114
  // const attributeMeta =
111
115
  // await this.attributeMasterService.findAttributesByMappedEntityType(
112
116
  // entity_type,
@@ -119,6 +123,7 @@ export class FilterService {
119
123
  {} as Record<string, any>,
120
124
  );
121
125
 
126
+ console.log(attributeMetaMap, 'ATTRIBUTEMETAMAP');
122
127
  // Get and parse filters
123
128
  const savedFilters = await this.getSavedFilters(savedFilterCode);
124
129
  const baseFilters = [
@@ -128,7 +133,7 @@ export class FilterService {
128
133
  ];
129
134
 
130
135
  const baseWhere = this.buildWhereClauses(baseFilters, attributeMetaMap);
131
-
136
+ console.log(baseWhere, 'BASEWHERE', level_type, level_id);
132
137
  if (level_type && level_id) {
133
138
  baseWhere.push({
134
139
  query: 'e.level_type = :level_type AND e.level_id = :level_id',
@@ -139,7 +144,9 @@ export class FilterService {
139
144
  });
140
145
  }
141
146
 
147
+ console.log('OUSTSIDE SKIP');
142
148
  if (this.skipLevelFilterEntities.includes(entity_type)) {
149
+ console.log('INSIDE SKIP');
143
150
  baseWhere.push({
144
151
  query: 'e.appcode = :appcode',
145
152
  params: { appcode },
@@ -153,12 +160,15 @@ export class FilterService {
153
160
  [user_id, entity_type],
154
161
  );
155
162
 
163
+ console.log('LAYOUTPREFERNECE', layoutPreference);
164
+
156
165
  // Extract layout preference
157
166
  const layout = layoutPreference?.[0]?.layout_json?.quick_tab || {};
158
167
  let showList = layout?.show_list?.map((val) => val.toLowerCase()) || [];
159
168
 
160
169
  let allTabs;
161
170
  if (layout.attribute) {
171
+ console.log('IN LAYOUT');
162
172
  allTabs = await this.gettab_value_counts(
163
173
  getTableMeta.data_source,
164
174
  layout.attribute,
@@ -210,6 +220,8 @@ export class FilterService {
210
220
  filteredTabs = allTabs;
211
221
  }
212
222
 
223
+ console.log(allTabs, 'ALLTABSE');
224
+
213
225
  const dataWhere = [...baseWhere];
214
226
 
215
227
  if (tabs?.columnName && tabs?.value) {