ui(admin): server editing improvements

This commit is contained in:
Matthew Penner 2021-09-15 11:09:54 -06:00
parent 23a160b9e1
commit 6df2368264
No known key found for this signature in database
GPG key ID: 030E4AB751DC756F
9 changed files with 153 additions and 90 deletions

View file

@ -22,6 +22,7 @@ export interface Server {
io: number;
cpu: number;
threads: string | null;
oomDisabled: boolean;
}
featureLimits: {
@ -43,8 +44,6 @@ export interface Server {
environment: Map<string, string>;
}
oomKiller: boolean;
createdAt: Date;
updatedAt: Date;
@ -71,6 +70,7 @@ export const rawDataToServer = ({ attributes }: FractalResponseData): Server =>
io: attributes.limits.io,
cpu: attributes.limits.cpu,
threads: attributes.limits.threads,
oomDisabled: attributes.limits.oom_disabled,
},
featureLimits: {
@ -92,8 +92,6 @@ export const rawDataToServer = ({ attributes }: FractalResponseData): Server =>
environment: attributes.container.environment,
},
oomKiller: attributes.oom_killer,
createdAt: new Date(attributes.created_at),
updatedAt: new Date(attributes.updated_at),

View file

@ -5,7 +5,6 @@ export interface Values {
externalId: string;
name: string;
ownerId: number;
oomKiller: boolean;
memory: number;
swap: number;
@ -13,6 +12,7 @@ export interface Values {
io: number;
cpu: number;
threads: string;
oomDisabled: boolean;
databases: number;
allocations: number;