rez_core 3.1.50 → 3.1.51

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": "3.1.50",
3
+ "version": "3.1.51",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -106,7 +106,14 @@ export class EntityDynamicService {
106
106
  },
107
107
  ];
108
108
 
109
- validAttributes.push(...bypassColumn);
109
+ // Only push bypassColumn attributes that don't already exist in validAttributes
110
+ const existingAttributeKeys = validAttributes.map(
111
+ (attr) => attr.attribute_key,
112
+ );
113
+ const newBypassColumns = bypassColumn.filter(
114
+ (bypass) => !existingAttributeKeys.includes(bypass.attribute_key),
115
+ );
116
+ validAttributes.push(...newBypassColumns);
110
117
 
111
118
  const columns: string[] = [];
112
119
  const values: any[] = [];
@@ -496,7 +503,14 @@ export class EntityDynamicService {
496
503
  },
497
504
  ];
498
505
 
499
- validAttributes.push(...bypassColumn);
506
+ // Only push bypassColumn attributes that don't already exist in validAttributes
507
+ const existingAttributeKeys = validAttributes.map(
508
+ (attr) => attr.attribute_key,
509
+ );
510
+ const newBypassColumns = bypassColumn.filter(
511
+ (bypass) => !existingAttributeKeys.includes(bypass.attribute_key),
512
+ );
513
+ validAttributes.push(...newBypassColumns);
500
514
 
501
515
  for (const key of Object.keys(entityData)) {
502
516
  if (validAttributes.some((attr) => attr.attribute_key === key)) {