From d1f7a731bde578ffc059a0232325d8f1553a84ce Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 12 May 2022 14:53:10 -0400 Subject: [PATCH] fix(striker-ui-api): add anvil description to anvil detail for provision server --- .../src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts | 3 +++ striker-ui-api/src/types/AnvilDetail.d.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts b/striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts index bbdcdc46..8485464c 100644 --- a/striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts +++ b/striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts @@ -142,6 +142,7 @@ const buildQueryAnvilDetail = ({ SELECT anv.anvil_uuid, anv.anvil_name, + anv.anvil_description, host_list.host_uuid, host_list.host_name, host_list.scan_hardware_cpu_cores, @@ -205,6 +206,7 @@ const buildQueryAnvilDetail = ({ [ anvilUUID, anvilName, + anvilDescription, hostUUID, hostName, hostCPUCores, @@ -231,6 +233,7 @@ const buildQueryAnvilDetail = ({ rowStage = { anvilUUID, anvilName, + anvilDescription, anvilTotalCPUCores: parseInt(anvilTotalCPUCores), anvilTotalMemory: String(anvilTotalMemory), anvilTotalAllocatedCPUCores: parseInt( diff --git a/striker-ui-api/src/types/AnvilDetail.d.ts b/striker-ui-api/src/types/AnvilDetail.d.ts index 8a6ccada..55261544 100644 --- a/striker-ui-api/src/types/AnvilDetail.d.ts +++ b/striker-ui-api/src/types/AnvilDetail.d.ts @@ -1,6 +1,7 @@ type AnvilDetailForProvisionServer = { anvilUUID: string; anvilName: string; + anvilDescription: string; hosts: Array<{ hostUUID: string; hostName: string;