Skip to content

Commit 6d2990f

Browse files
feat: register commerce-product-enrichments-yearly audit type (#1381)
## Summary - Add `COMMERCE_PRODUCT_ENRICHMENTS_YEARLY` to `AUDIT_TYPES` enum in `audit.model.js` - Update test to include the new audit type in the expected types map This is a prerequisite for the audit worker PR on `feat/commerce-product-enrichments-sitemap-strategy` which introduces the yearly sitemap-based commerce product enrichments audit type. ## Test plan - [x] `audit.model.test.js` passes — all 27 tests including audit type validation
1 parent 33e6b7f commit 6d2990f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/spacecat-shared-data-access/src/models/audit/audit.model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class Audit extends BaseModel {
8484
TOC: 'toc',
8585
WIKIPEDIA_ANALYSIS: 'wikipedia-analysis',
8686
COMMERCE_PRODUCT_ENRICHMENTS: 'commerce-product-enrichments',
87+
COMMERCE_PRODUCT_ENRICHMENTS_YEARLY: 'commerce-product-enrichments-yearly',
8788
COMMERCE_PRODUCT_PAGE_ENRICHMENT: 'commerce-product-page-enrichment',
8889
COMMERCE_PRODUCT_CATALOG_ENRICHMENT: 'commerce-product-catalog-enrichment',
8990
};

packages/spacecat-shared-data-access/test/unit/models/audit/audit.model.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ describe('AuditModel', () => {
211211
TOC: 'toc',
212212
WIKIPEDIA_ANALYSIS: 'wikipedia-analysis',
213213
COMMERCE_PRODUCT_ENRICHMENTS: 'commerce-product-enrichments',
214+
COMMERCE_PRODUCT_ENRICHMENTS_YEARLY: 'commerce-product-enrichments-yearly',
214215
COMMERCE_PRODUCT_PAGE_ENRICHMENT: 'commerce-product-page-enrichment',
215216
COMMERCE_PRODUCT_CATALOG_ENRICHMENT: 'commerce-product-catalog-enrichment',
216217
};

0 commit comments

Comments
 (0)