mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-25 13:46:07 +02:00
Fix #4: Per-cluster metric selection lists
This commit is contained in:
@@ -174,9 +174,10 @@ func UpdateConfig(key, value string, ctx context.Context) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := uiDefaults[key]; !ok {
|
// Disabled because now `plot_list_selectedMetrics:<cluster>` is possible.
|
||||||
return errors.New("this configuration key does not exist")
|
// 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 (?, ?, ?)`,
|
if _, err := db.Exec(`REPLACE INTO configuration (username, confkey, value) VALUES (?, ?, ?)`,
|
||||||
user.Username, key, value); err != nil {
|
user.Username, key, value); err != nil {
|
||||||
|
2
frontend
2
frontend
Submodule frontend updated: fdf89ac36f...415335f616
Reference in New Issue
Block a user