github-issue-tower-defence-management 2.164.11 → 2.164.13
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/bin/adapter/repositories/issue/findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.js +18 -0
- package/bin/adapter/repositories/issue/findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.js.map +1 -0
- package/package.json +3 -2
- package/types/adapter/repositories/issue/findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.d.ts +5 -0
- package/types/adapter/repositories/issue/findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.d.ts.map +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition = exports.projectItemsConnectionReadRetryDelayMs = exports.projectItemsConnectionReadRetryAttemptsAfterRecentAddition = void 0;
|
|
4
|
+
exports.projectItemsConnectionReadRetryAttemptsAfterRecentAddition = 60;
|
|
5
|
+
exports.projectItemsConnectionReadRetryDelayMs = 1000;
|
|
6
|
+
const findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition = async (projectItemRepository, targetProjectId, recentlyAddedItemId) => {
|
|
7
|
+
for (let attempt = 0; attempt < exports.projectItemsConnectionReadRetryAttemptsAfterRecentAddition; attempt++) {
|
|
8
|
+
const { issues: items } = await projectItemRepository.fetchProjectItems(targetProjectId);
|
|
9
|
+
const found = items.find((item) => item.id === recentlyAddedItemId);
|
|
10
|
+
if (found !== undefined) {
|
|
11
|
+
return found;
|
|
12
|
+
}
|
|
13
|
+
await new Promise((resolve) => setTimeout(resolve, exports.projectItemsConnectionReadRetryDelayMs));
|
|
14
|
+
}
|
|
15
|
+
return undefined;
|
|
16
|
+
};
|
|
17
|
+
exports.findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition = findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition;
|
|
18
|
+
//# sourceMappingURL=findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.js","sourceRoot":"","sources":["../../../../src/adapter/repositories/issue/findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.ts"],"names":[],"mappings":";;;AAEa,QAAA,0DAA0D,GAAG,EAAE,CAAC;AAChE,QAAA,sCAAsC,GAAG,IAAI,CAAC;AAEpD,MAAM,oEAAoE,GAC/E,KAAK,EACH,qBAAmD,EACnD,eAAuB,EACvB,mBAA2B,EAM3B,EAAE;IACF,KACE,IAAI,OAAO,GAAG,CAAC,EACf,OAAO,GAAG,kEAA0D,EACpE,OAAO,EAAE,EACT,CAAC;QACD,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GACrB,MAAM,qBAAqB,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;QACjE,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,mBAAmB,CAAC,CAAC;QACpE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,OAAO,KAAK,CAAC;QACf,CAAC;QACD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAC5B,UAAU,CAAC,OAAO,EAAE,8CAAsC,CAAC,CAC5D,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AA3BS,QAAA,oEAAoE,wEA2B7E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "github-issue-tower-defence-management",
|
|
3
|
-
"version": "2.164.
|
|
3
|
+
"version": "2.164.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"console-ui:e2e": "npm run build:console-ui && playwright test --config src/adapter/entry-points/console/ui/e2e/playwright.config.ts",
|
|
20
20
|
"console-ui:storybook": "storybook dev -p 6006 -c src/adapter/entry-points/console/ui/.storybook",
|
|
21
21
|
"console-ui:build-storybook": "storybook build -c src/adapter/entry-points/console/ui/.storybook -o src/adapter/entry-points/console/ui/storybook-static",
|
|
22
|
-
"test": "jest",
|
|
22
|
+
"test": "jest --selectProjects backend console-ui",
|
|
23
|
+
"test:live-project-items": "jest --selectProjects backend-live-integration",
|
|
23
24
|
"test:related": "jest --onlyChanged --passWithNoTests",
|
|
24
25
|
"prepare": "true"
|
|
25
26
|
},
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GraphqlProjectItemRepository } from './GraphqlProjectItemRepository';
|
|
2
|
+
export declare const projectItemsConnectionReadRetryAttemptsAfterRecentAddition = 60;
|
|
3
|
+
export declare const projectItemsConnectionReadRetryDelayMs = 1000;
|
|
4
|
+
export declare const findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition: (projectItemRepository: GraphqlProjectItemRepository, targetProjectId: string, recentlyAddedItemId: string) => Promise<Awaited<ReturnType<GraphqlProjectItemRepository["fetchProjectItems"]>>["issues"][number] | undefined>;
|
|
5
|
+
//# sourceMappingURL=findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.d.ts","sourceRoot":"","sources":["../../../../src/adapter/repositories/issue/findProjectItemRetryingWhileProjectItemsConnectionLagsRecentAddition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,eAAO,MAAM,0DAA0D,KAAK,CAAC;AAC7E,eAAO,MAAM,sCAAsC,OAAO,CAAC;AAE3D,eAAO,MAAM,oEAAoE,GAE7E,uBAAuB,4BAA4B,EACnD,iBAAiB,MAAM,EACvB,qBAAqB,MAAM,KAC1B,OAAO,CACN,OAAO,CACL,UAAU,CAAC,4BAA4B,CAAC,mBAAmB,CAAC,CAAC,CAC9D,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GACnB,SAAS,CAkBZ,CAAC"}
|