@adobe/spacecat-shared-data-access 4.15.3 → 4.16.1
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,15 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-data-access-v4.16.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.16.0...@adobe/spacecat-shared-data-access-v4.16.1) (2026-08-03)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **data-access:** reconcile status-transition tables from SITES-47286 warn findings ([#1860](https://github.com/adobe/spacecat-shared/issues/1860)) ([237c081](https://github.com/adobe/spacecat-shared/commit/237c081feaec5368e4b08422d83087762a672fe5)), closes [#5](https://github.com/adobe/spacecat-shared/issues/5)
|
|
6
|
+
|
|
7
|
+
## [@adobe/spacecat-shared-data-access-v4.16.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.15.3...@adobe/spacecat-shared-data-access-v4.16.0) (2026-07-31)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **data-access:** expose deployedAt on FixEntity (SITES-47997/48823) ([#1857](https://github.com/adobe/spacecat-shared/issues/1857)) ([512d991](https://github.com/adobe/spacecat-shared/commit/512d991aaee98cad2387807193852937cede6ddd))
|
|
12
|
+
|
|
1
13
|
## [@adobe/spacecat-shared-data-access-v4.15.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.15.2...@adobe/spacecat-shared-data-access-v4.15.3) (2026-07-29)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -33,6 +33,14 @@ const schema = new SchemaBuilder(FixEntity, FixEntityCollection)
|
|
|
33
33
|
type: 'string',
|
|
34
34
|
validate: (value) => !value || isIsoDate(value),
|
|
35
35
|
})
|
|
36
|
+
// SITES-47997/48823 — the DEPLOYED moment (written/confirmed to author),
|
|
37
|
+
// distinct from executedAt (apply executed) and publishedAt (live). Maps to
|
|
38
|
+
// the fix_entities.deployed_at column; stamped by mystique on the -> DEPLOYED
|
|
39
|
+
// transition. Optional (null for rows created before the column).
|
|
40
|
+
.addAttribute('deployedAt', {
|
|
41
|
+
type: 'string',
|
|
42
|
+
validate: (value) => !value || isIsoDate(value),
|
|
43
|
+
})
|
|
36
44
|
.addAttribute('publishedAt', {
|
|
37
45
|
type: 'string',
|
|
38
46
|
validate: (value) => !value || isIsoDate(value),
|
|
@@ -45,7 +45,9 @@ export const FIX_ENTITY_TRANSITIONS = {
|
|
|
45
45
|
[STATUSES.PENDING]: [STATUSES.DEPLOYED, STATUSES.FAILED],
|
|
46
46
|
[STATUSES.DEPLOYED]: [STATUSES.PUBLISHED, STATUSES.ROLLED_BACK],
|
|
47
47
|
// bounded retry; the attempts cap (SITES-46548) is not enforced here.
|
|
48
|
-
|
|
48
|
+
// ROLLED_BACK reconciles the ADR table to api-service's existing revert rule
|
|
49
|
+
// ("ROLLED_BACK requires FAILED", fixes.js) — SITES-47286 warn finding (~6x/25d).
|
|
50
|
+
[STATUSES.FAILED]: [STATUSES.PENDING, STATUSES.ROLLED_BACK],
|
|
49
51
|
[STATUSES.PUBLISHED]: [STATUSES.ROLLED_BACK],
|
|
50
52
|
[STATUSES.ROLLED_BACK]: [], // terminal
|
|
51
53
|
};
|
|
@@ -20,6 +20,8 @@ export interface FixEntity extends BaseModel {
|
|
|
20
20
|
setChangeDetails(value: object): this;
|
|
21
21
|
getExecutedAt(): string;
|
|
22
22
|
setExecutedAt(value: string): this;
|
|
23
|
+
getDeployedAt(): string;
|
|
24
|
+
setDeployedAt(value: string): this;
|
|
23
25
|
getExecutedBy(): string;
|
|
24
26
|
setExecutedBy(value: string): this;
|
|
25
27
|
getOpportunity(): Promise<Opportunity>;
|
|
@@ -64,8 +64,10 @@ export const SUGGESTION_TRANSITIONS = {
|
|
|
64
64
|
[S.SKIPPED]: [S.NEW, S.OUTDATED],
|
|
65
65
|
// re-detection reopens an outdated suggestion.
|
|
66
66
|
[S.OUTDATED]: [S.NEW],
|
|
67
|
-
// near-terminal:
|
|
68
|
-
|
|
67
|
+
// near-terminal: reopen to NEW to correct a misclassification (sandsinh review), or a
|
|
68
|
+
// re-audit outdates a rejected suggestion once its issue is no longer detected
|
|
69
|
+
// (SITES-47286 warn finding: REJECTED -> OUTDATED, ~247x/25d, legitimate re-audit flow).
|
|
70
|
+
[S.REJECTED]: [S.NEW, S.OUTDATED],
|
|
69
71
|
};
|
|
70
72
|
|
|
71
73
|
/**
|