@adobe/spacecat-shared-data-access 2.64.3 → 2.64.5

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.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)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 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))
7
+
8
+ # [@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)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * dummy update readme ([#983](https://github.com/adobe/spacecat-shared/issues/983)) ([a631f36](https://github.com/adobe/spacecat-shared/commit/a631f36443ae96098a36412c1aab7995416c57d1))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.64.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.64.2...@adobe/spacecat-shared-data-access-v2.64.3) (2025-09-23)
2
16
 
3
17
 
package/README.md CHANGED
@@ -20,7 +20,7 @@ npm install @adobe/spacecat-shared-data-access
20
20
 
21
21
  ### SiteCandidates
22
22
  - **baseURL** (String): Base URL of the site candidate.
23
- - **status** (String): Status of the site candidate (PENDING, IGNORED, APPROVED, ERROR)
23
+ - **status** (String): Status of the site candidate (PENDING, IGNORED, APPROVED, ERROR).
24
24
  - **createdAt** (String): Timestamp of creation.
25
25
  - **updatedAt** (String): Timestamp of the last update.
26
26
  - **updatedBy** (String): Slack id of the last person updated the site candidate.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.64.3",
3
+ "version": "2.64.5",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -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
  }
@@ -37,6 +37,7 @@ class Suggestion extends BaseModel {
37
37
  REDIRECT_UPDATE: 'REDIRECT_UPDATE',
38
38
  METADATA_UPDATE: 'METADATA_UPDATE',
39
39
  AI_INSIGHTS: 'AI_INSIGHTS',
40
+ CONFIG_UPDATE: 'CONFIG_UPDATE',
40
41
  };
41
42
 
42
43
  // add your customized methods here