mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
add config fallbacks and notes
This commit is contained in:
@@ -358,6 +358,7 @@ type Query {
|
|||||||
from: Time!
|
from: Time!
|
||||||
to: Time!
|
to: Time!
|
||||||
): [NodeMetrics!]!
|
): [NodeMetrics!]!
|
||||||
|
|
||||||
nodeMetricsList(
|
nodeMetricsList(
|
||||||
cluster: String!
|
cluster: String!
|
||||||
subCluster: String!
|
subCluster: String!
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
/* Svelte 5 Props */
|
/* Svelte 5 Props */
|
||||||
let {
|
let {
|
||||||
matchedCompareJobs = $bindable(0),
|
matchedCompareJobs = $bindable(0),
|
||||||
metrics = ccconfig?.plot_list_selectedMetrics,
|
metrics = getContext("cc-config")?.plot_list_selectedMetrics,
|
||||||
filterBuffer = [],
|
filterBuffer = [],
|
||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
|
@@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
/* Const Init */
|
/* Const Init */
|
||||||
const clusterCockpitConfig = getContext("cc-config");
|
const clusterCockpitConfig = getContext("cc-config");
|
||||||
const lineWidth = clusterCockpitConfig.plot_general_lineWidth / window.devicePixelRatio;
|
const lineWidth = clusterCockpitConfig?.plot_general_lineWidth / window.devicePixelRatio || 2;
|
||||||
const cbmode = clusterCockpitConfig?.plot_general_colorblindMode || false;
|
const cbmode = clusterCockpitConfig?.plot_general_colorblindMode || false;
|
||||||
|
|
||||||
// UPLOT SERIES INIT //
|
// UPLOT SERIES INIT //
|
||||||
|
@@ -79,7 +79,7 @@
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
/* Functions */
|
/* Functions */
|
||||||
// TODO: Originally Uses User View Selection! -> Change to Status View
|
// TODO: Originally Uses User View Selection! -> Change to Status View : Adapt Mutations from TopUserSelect
|
||||||
// function updateTopUserConfiguration(select) {
|
// function updateTopUserConfiguration(select) {
|
||||||
// if (ccconfig[`status_view_selectedHistograms:${cluster}`] != select) {
|
// if (ccconfig[`status_view_selectedHistograms:${cluster}`] != select) {
|
||||||
// updateConfigurationMutation({
|
// updateConfigurationMutation({
|
||||||
|
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
/* Derived */
|
/* Derived */
|
||||||
// Note: nodeMetrics are requested on configured $timestep resolution
|
// Note: nodeMetrics are requested on configured $timestep resolution
|
||||||
|
// Result: The latest 5 minutes (datapoints) for each node independent of job
|
||||||
const statusQuery = $derived(queryStore({
|
const statusQuery = $derived(queryStore({
|
||||||
client: client,
|
client: client,
|
||||||
query: gql`
|
query: gql`
|
||||||
|
Reference in New Issue
Block a user