@adobe/spacecat-shared-data-access 2.64.4 → 2.64.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [@adobe/spacecat-shared-data-access-v2.64.6](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.64.5...@adobe/spacecat-shared-data-access-v2.64.6) (2025-09-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * allow configurable cache flag on import step ([#988](https://github.com/adobe/spacecat-shared/issues/988)) ([219d9ab](https://github.com/adobe/spacecat-shared/commit/219d9ab098ce1bc91d90c9e5ac8624ffd576dc14))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.64.5](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.64.4...@adobe/spacecat-shared-data-access-v2.64.5) (2025-09-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * remove unnecessary logs to reduce Coralogix usage ([#947](https://github.com/adobe/spacecat-shared/issues/947)) ([c93fa4f](https://github.com/adobe/spacecat-shared/commit/c93fa4f69238106caa0f8150df029e4535c99e39))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.64.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.64.3...@adobe/spacecat-shared-data-access-v2.64.4) (2025-09-24)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.64.4",
3
+ "version": "2.64.6",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -129,7 +129,7 @@ class Audit extends BaseModel {
129
129
  startDate: stepResult.startDate,
130
130
  endDate: stepResult.endDate,
131
131
  urlConfigs: stepResult.urlConfigs,
132
- allowCache: true,
132
+ allowCache: isBoolean(stepResult.allowCache) ? stepResult.allowCache : true,
133
133
  auditContext,
134
134
  }),
135
135
  },
@@ -415,7 +415,7 @@ class BaseCollection {
415
415
 
416
416
  this.#invalidateCache();
417
417
 
418
- this.log.info(`Created item for [${this.entityName}]`);
418
+ this.log.debug(`Created item for [${this.entityName}]`); // ~100k logs
419
419
 
420
420
  await this.#onCreate(instance);
421
421
 
@@ -495,7 +495,7 @@ class BaseCollection {
495
495
 
496
496
  this.#invalidateCache();
497
497
 
498
- this.log.info(`Created ${createdItems.length} items for [${this.entityName}]`);
498
+ this.log.debug(`Created ${createdItems.length} items for [${this.entityName}]`);
499
499
 
500
500
  await this.#onCreateMany({ createdItems, errorItems });
501
501
 
@@ -537,7 +537,7 @@ class BaseCollection {
537
537
  this.log.error(`Failed to process all items in batch write for [${this.entityName}]: ${JSON.stringify(response.unprocessed)}`);
538
538
  }
539
539
 
540
- this.log.info(`Updated ${items.length} items for [${this.entityName}]`);
540
+ this.log.debug(`Updated ${items.length} items for [${this.entityName}]`);
541
541
 
542
542
  return this.#invalidateCache();
543
543
  } catch (error) {
@@ -565,7 +565,7 @@ class BaseCollection {
565
565
 
566
566
  await this.entity.delete(ids.map((id) => ({ [this.idName]: id }))).go();
567
567
 
568
- this.log.info(`Removed ${ids.length} items for [${this.entityName}]`);
568
+ this.log.debug(`Removed ${ids.length} items for [${this.entityName}]`);
569
569
 
570
570
  return this.#invalidateCache();
571
571
  } catch (error) {
@@ -267,7 +267,7 @@ class BaseModel {
267
267
  }
268
268
  });
269
269
 
270
- this.log.info(`Removing entity ${this.entityName} with ID ${this.getId()} and ${dependents.length} dependents`);
270
+ this.log.debug(`Removing entity ${this.entityName} with ID ${this.getId()} and ${dependents.length} dependents`);
271
271
 
272
272
  await Promise.all(removePromises);
273
273
 
@@ -297,7 +297,7 @@ class BaseModel {
297
297
  async save() {
298
298
  // todo: validate associations
299
299
  try {
300
- this.log.info(`Saving entity ${this.entityName} with ID ${this.getId()}`);
300
+ this.log.debug(`Saving entity ${this.entityName} with ID ${this.getId()}`);
301
301
 
302
302
  await this.patcher.save();
303
303
  this.#invalidateCache();
@@ -48,7 +48,7 @@ class SuggestionCollection extends BaseCollection {
48
48
 
49
49
  await this._saveMany(suggestions);
50
50
 
51
- this.log.info(`Bulk updated ${suggestions.length} suggestions to status: ${status}`);
51
+ this.log.debug(`Bulk updated ${suggestions.length} suggestions to status: ${status}`);
52
52
 
53
53
  return suggestions;
54
54
  }