From 8facef21a955fc891da70819924ab3b96148049e Mon Sep 17 00:00:00 2001 From: Lou Knauer Date: Wed, 9 Mar 2022 14:25:43 +0100 Subject: [PATCH] Fix #4: Per-cluster metric selection lists --- config/config.go | 7 ++++--- frontend | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index cffda00..816ad8f 100644 --- a/config/config.go +++ b/config/config.go @@ -174,9 +174,10 @@ func UpdateConfig(key, value string, ctx context.Context) error { return nil } - if _, ok := uiDefaults[key]; !ok { - return errors.New("this configuration key does not exist") - } + // Disabled because now `plot_list_selectedMetrics:` is possible. + // if _, ok := uiDefaults[key]; !ok { + // return errors.New("this configuration key does not exist") + // } if _, err := db.Exec(`REPLACE INTO configuration (username, confkey, value) VALUES (?, ?, ?)`, user.Username, key, value); err != nil { diff --git a/frontend b/frontend index fdf89ac..415335f 160000 --- a/frontend +++ b/frontend @@ -1 +1 @@ -Subproject commit fdf89ac36ff7eb12fabd483ad6e50d55cc118b8b +Subproject commit 415335f616f36e5c0785aee1a63eacb1803a57c9