Skip to content

Commit 4228f16

Browse files
committed
improve utilization page
1 parent 7491ef8 commit 4228f16

File tree

3 files changed

+196
-215
lines changed

3 files changed

+196
-215
lines changed

src/lib/utils/searchparams.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { goto } from '$app/navigation';
22
import { page } from '$app/state';
33

4-
export const changeParams = (params: Record<string, string>) => {
4+
export const changeParams = (params: Record<string, string>, options = {}) => {
55
const query = new URLSearchParams(page.url.searchParams);
66
for (const [key, value] of Object.entries(params)) {
77
if (value === '') {
@@ -10,5 +10,5 @@ export const changeParams = (params: Record<string, string>) => {
1010
}
1111
query.set(key, value);
1212
}
13-
goto(`?${query.toString()}`);
13+
goto(`?${query.toString()}`, options);
1414
};

src/routes/team/[team]/[env]/app/[app]/utilization/+page.gql

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ query ResourceUtilizationForApp(
88
team(slug: $team) {
99
environment(name: $env) {
1010
application(name: $app) {
11-
name
12-
#instances {
13-
# id
14-
#}
1511
utilization {
1612
current_cpu: current(resourceType: CPU)
1713
current_memory: current(resourceType: MEMORY)

0 commit comments

Comments
 (0)