@raketa-cloud/admin 1.10.0 → 1.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raketa-cloud/admin",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "main": "src/index.js",
5
5
  "files": [
6
6
  "src/",
@@ -25,7 +25,7 @@ export const buildResourceUrl = (resource, globalConfig) => {
25
25
  };
26
26
 
27
27
  export const hasUnattachedKeys = (task) => {
28
- if (!task || task.completedAt || task.failedAt) return false;
28
+ if (!task) return false;
29
29
 
30
30
  const unattachedKeys = task.lokaliseWorkflow?.settings?.unattached_keys;
31
31
  const ids = unattachedKeys?.ids;
@@ -76,22 +76,6 @@ describe("content_tasks_helper", () => {
76
76
  expect(hasUnattachedKeys(undefined)).toBe(false);
77
77
  });
78
78
 
79
- test("returns false when task is completed or failed", () => {
80
- expect(
81
- hasUnattachedKeys({
82
- completedAt: "2024-01-01T00:00:00Z",
83
- lokaliseWorkflow: { settings: { unattached_keys: { ids: [1, 2] } } },
84
- }),
85
- ).toBe(false);
86
-
87
- expect(
88
- hasUnattachedKeys({
89
- failedAt: "2024-01-01T00:00:00Z",
90
- lokaliseWorkflow: { settings: { unattached_keys: { ids: [1, 2] } } },
91
- }),
92
- ).toBe(false);
93
- });
94
-
95
79
  test("returns false when task has no lokaliseWorkflow or settings", () => {
96
80
  expect(hasUnattachedKeys({ completedAt: null, failedAt: null })).toBe(
97
81
  false,