From 31a650521dae6bbb83c87c37db7795c60e2a0a0a Mon Sep 17 00:00:00 2001 From: Noel Kwan <47273164+kwannoel@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:26:01 +0800 Subject: [PATCH 1/2] chore(dashboard): remove unused function (#19158) --- dashboard/lib/layout.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/dashboard/lib/layout.ts b/dashboard/lib/layout.ts index e6549d4b1e979..714ed9fe0f0db 100644 --- a/dashboard/lib/layout.ts +++ b/dashboard/lib/layout.ts @@ -516,33 +516,3 @@ export function generateFragmentEdges( } return links } - -export function generateRelationBackPressureEdges( - layoutMap: RelationBoxPosition[] -): Edge[] { - const links = [] - const relationMap = new Map() - for (const x of layoutMap) { - relationMap.set(x.id, x) - } - for (const relation of layoutMap) { - for (const parentId of relation.parentIds) { - const parentRelation = relationMap.get(parentId)! - links.push({ - points: [ - { - x: relation.x + relation.width / 2, - y: relation.y + relation.height / 2, - }, - { - x: parentRelation.x + parentRelation.width / 2, - y: parentRelation.y + parentRelation.height / 2, - }, - ], - source: relation.id, - target: parentId, - }) - } - } - return links -} From 193e93fd8d9f9dbae717fe6a5b411e7f33382f27 Mon Sep 17 00:00:00 2001 From: xxchan Date: Tue, 29 Oct 2024 13:07:00 +0800 Subject: [PATCH 2/2] ci: fix scout in docker pipeline (#19164) Signed-off-by: xxchan --- ci/workflows/docker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/workflows/docker.yml b/ci/workflows/docker.yml index 6fda1ea24138e..603376ace665a 100644 --- a/ci/workflows/docker.yml +++ b/ci/workflows/docker.yml @@ -98,6 +98,7 @@ steps: retry: *auto-retry - label: "generate notification step" + if: build.env("ENABLE_DOCKER_SCOUT") == "true" depends_on: - "docker-scout" command: ci/scripts/docker-scout-notify.sh