mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-11-01 00:15:05 +01:00
Fix missing model.Aggregate entry, fix status queries and refresh
This commit is contained in:
@@ -185,6 +185,7 @@
|
||||
paging: { itemsPerPage: -1, page: 1 }, // Get all: -1
|
||||
sorting: { field: "startTime", type: "col", order: "DESC" }
|
||||
},
|
||||
requestPolicy: "network-only"
|
||||
}));
|
||||
|
||||
/* Effects */
|
||||
@@ -233,6 +234,10 @@
|
||||
}
|
||||
});
|
||||
|
||||
$inspect('From', from)
|
||||
$inspect('To', to)
|
||||
$inspect('Query', statusQuery)
|
||||
|
||||
/* Const Functions */
|
||||
const sumUp = (data, subcluster, metric) =>
|
||||
data.reduce(
|
||||
@@ -363,6 +368,7 @@
|
||||
<Refresher
|
||||
initially={120}
|
||||
onRefresh={() => {
|
||||
console.log('Trigger Refresh StatusTab')
|
||||
from = new Date(Date.now() - 5 * 60 * 1000);
|
||||
to = new Date(Date.now());
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user