@adobe/spacecat-shared-data-access 3.74.1 → 3.74.3
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-v3.74.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.74.2...@adobe/spacecat-shared-data-access-v3.74.3) (2026-06-12)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **data-access:** remove stale stash conflict markers in CHANGELOG ([#1669](https://github.com/adobe/spacecat-shared/issues/1669)) ([12229c3](https://github.com/adobe/spacecat-shared/commit/12229c33e6b2ed9731d256d89b580a0ad64d96b3))
|
|
6
|
+
|
|
7
|
+
## [@adobe/spacecat-shared-data-access-v3.74.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.74.1...@adobe/spacecat-shared-data-access-v3.74.2) (2026-06-11)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* reset linked issue status to NEW on FixEntity removal ([#1668](https://github.com/adobe/spacecat-shared/issues/1668)) ([46c54b8](https://github.com/adobe/spacecat-shared/commit/46c54b8829ea3b00029a4afa0cb835f3e7983dc9))
|
|
12
|
+
|
|
1
13
|
## [@adobe/spacecat-shared-data-access-v3.74.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.74.0...@adobe/spacecat-shared-data-access-v3.74.1) (2026-06-09)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
|
@@ -3726,18 +3738,14 @@ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
|
|
3726
3738
|
|
|
3727
3739
|
* github org ([02f86c3](https://github.com/adobe/spacecat-shared/commit/02f86c351b2b1ab99ce5aca7fd5e6af2246c0efd))
|
|
3728
3740
|
|
|
3729
|
-
|
|
3730
|
-
# [@adobe/spacecat-shared-data-access-v1.6.0](https://github.com/adobe-rnd/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.5.2...@adobe/spacecat-shared-data-access-v1.6.0) (2024-01-12)
|
|
3741
|
+
# [@adobe/spacecat-shared-data-access-v1.6.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.5.2...@adobe/spacecat-shared-data-access-v1.6.0) (2024-01-12)
|
|
3731
3742
|
|
|
3732
3743
|
|
|
3733
3744
|
### Features
|
|
3734
3745
|
|
|
3735
|
-
* site delivery type ([#77](https://github.com/adobe
|
|
3746
|
+
* site delivery type ([#77](https://github.com/adobe/spacecat-shared/issues/77)) ([005bc38](https://github.com/adobe/spacecat-shared/commit/005bc388ed6ab0f82c8b0f562d4c1f4c0d1e2894))
|
|
3736
3747
|
|
|
3737
|
-
# [@adobe/spacecat-shared-data-access-v1.5.2](https://github.com/adobe-rnd/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.5.1...@adobe/spacecat-shared-data-access-v1.5.2) (2023-12-30)
|
|
3738
|
-
=======
|
|
3739
3748
|
# [@adobe/spacecat-shared-data-access-v1.5.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.5.1...@adobe/spacecat-shared-data-access-v1.5.2) (2023-12-30)
|
|
3740
|
-
>>>>>>> Stashed changes
|
|
3741
3749
|
|
|
3742
3750
|
|
|
3743
3751
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -44,6 +44,50 @@ class FixEntity extends BaseModel {
|
|
|
44
44
|
return fixEntityCollection
|
|
45
45
|
.getSuggestionsByFixEntityId(this.getId());
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Removes this FixEntity. When the fix is bound to a specific issue (granular CWV
|
|
50
|
+
* model — `changeDetails.issueId` is set), also rewinds every linked Suggestion so
|
|
51
|
+
* the issue is reopenable: clears `data.issues[issueId].fixEntityId` and resets
|
|
52
|
+
* that issue's status to NEW. The fix row and its junction rows are deleted by the
|
|
53
|
+
* inherited remove flow.
|
|
54
|
+
*
|
|
55
|
+
* Skipped when the fix has no issueId (legacy / non-CWV fixes) — same behavior as
|
|
56
|
+
* before. Also skipped when this method is reached as a dependent cascade (parent
|
|
57
|
+
* removal goes through `_remove()` directly), since the parent teardown moots the
|
|
58
|
+
* per-issue rewind.
|
|
59
|
+
*/
|
|
60
|
+
async remove() {
|
|
61
|
+
const issueId = this.record?.changeDetails?.issueId;
|
|
62
|
+
if (issueId) {
|
|
63
|
+
await this.#resetLinkedIssues(issueId);
|
|
64
|
+
}
|
|
65
|
+
return super.remove();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
async #resetLinkedIssues(issueId) {
|
|
69
|
+
const suggestions = await this.getSuggestions();
|
|
70
|
+
|
|
71
|
+
await Promise.all(suggestions.map(async (suggestion) => {
|
|
72
|
+
const data = suggestion.getData();
|
|
73
|
+
if (!data || !Array.isArray(data.issues)) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
let mutated = false;
|
|
77
|
+
const nextIssues = data.issues.map((issue) => {
|
|
78
|
+
if (issue && issue.id === issueId) {
|
|
79
|
+
mutated = true;
|
|
80
|
+
return { ...issue, status: 'NEW', fixEntityId: null };
|
|
81
|
+
}
|
|
82
|
+
return issue;
|
|
83
|
+
});
|
|
84
|
+
if (!mutated) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
suggestion.setData({ ...data, issues: nextIssues });
|
|
88
|
+
await suggestion.save();
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
47
91
|
}
|
|
48
92
|
|
|
49
93
|
export default FixEntity;
|