From ede948676f67134fcf47ac6a195b86a66302f779 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Fri, 16 May 2025 18:22:50 +0700 Subject: [PATCH] UBERF-10637: Fix duplication on github with few integerations added (#8970) Signed-off-by: Andrey Sobolev --- services/github/pod-github/src/platform.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/github/pod-github/src/platform.ts b/services/github/pod-github/src/platform.ts index 6671bf4129..0a127318c4 100644 --- a/services/github/pod-github/src/platform.ts +++ b/services/github/pod-github/src/platform.ts @@ -807,7 +807,8 @@ export class PlatformWorker { } async getWorkspaces (): Promise { - return this.integrations.map((it) => it.workspace) + // Since few integeration could map into one workspace, we need to deduplicate + return Array.from(new Set(this.integrations.map((it) => it.workspace))) } checkedWorkspaces = new Set()