fix: resolve insight redirect loop and grafana dashboard provisioning
This commit is contained in:
parent
f691e17c88
commit
aa2a53157d
@ -275,9 +275,10 @@ def init_all(dashboard_dir):
|
||||
folders.append((f, abs_path)) # folder name, abs path
|
||||
|
||||
home_uid = ""
|
||||
# star_dashboard_by_uid(home_uid) # home dashboards will be loaded above if exists
|
||||
update_org_preference(home_uid, "light")
|
||||
update_user_preference(home_uid, "light")
|
||||
if home_uid:
|
||||
star_dashboard_by_uid(home_uid) # home dashboards will be loaded above if exists
|
||||
update_org_preference(home_uid, "light")
|
||||
update_user_preference(home_uid, "light")
|
||||
|
||||
# load other second-layer dashboards
|
||||
for folder_name, folder_path in folders:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user