Fix #4: Per-cluster metric selection lists

This commit is contained in:
Lou Knauer
2022-03-09 14:25:43 +01:00
parent 9535c11dc4
commit 8facef21a9
2 changed files with 5 additions and 4 deletions

View File

@@ -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:<cluster>` 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 {