fix(striker-ui-api): add anvil description to anvil detail for provision server

main
Tsu-ba-me 3 years ago
parent 82fb477eb3
commit d1f7a731bd
  1. 3
      striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts
  2. 1
      striker-ui-api/src/types/AnvilDetail.d.ts

@ -142,6 +142,7 @@ const buildQueryAnvilDetail = ({
SELECT SELECT
anv.anvil_uuid, anv.anvil_uuid,
anv.anvil_name, anv.anvil_name,
anv.anvil_description,
host_list.host_uuid, host_list.host_uuid,
host_list.host_name, host_list.host_name,
host_list.scan_hardware_cpu_cores, host_list.scan_hardware_cpu_cores,
@ -205,6 +206,7 @@ const buildQueryAnvilDetail = ({
[ [
anvilUUID, anvilUUID,
anvilName, anvilName,
anvilDescription,
hostUUID, hostUUID,
hostName, hostName,
hostCPUCores, hostCPUCores,
@ -231,6 +233,7 @@ const buildQueryAnvilDetail = ({
rowStage = { rowStage = {
anvilUUID, anvilUUID,
anvilName, anvilName,
anvilDescription,
anvilTotalCPUCores: parseInt(anvilTotalCPUCores), anvilTotalCPUCores: parseInt(anvilTotalCPUCores),
anvilTotalMemory: String(anvilTotalMemory), anvilTotalMemory: String(anvilTotalMemory),
anvilTotalAllocatedCPUCores: parseInt( anvilTotalAllocatedCPUCores: parseInt(

@ -1,6 +1,7 @@
type AnvilDetailForProvisionServer = { type AnvilDetailForProvisionServer = {
anvilUUID: string; anvilUUID: string;
anvilName: string; anvilName: string;
anvilDescription: string;
hosts: Array<{ hosts: Array<{
hostUUID: string; hostUUID: string;
hostName: string; hostName: string;

Loading…
Cancel
Save