remove debugging and copilot comments

This commit is contained in:
M@
2025-12-04 18:58:34 -05:00
parent ac8fbd15e3
commit 3914fb2ac1
2 changed files with 0 additions and 20 deletions
-15
View File
@@ -224,23 +224,8 @@ func (hs *HTTPServer) setIndexViewData(c *contextmodel.ReqContext) (*dtos.IndexV
data.Settings.FeatureToggles = map[string]bool{}
}
// Use value populated by your loader (pkg/setting/feature_toggles.go). If not wired,
// you can temporarily hardcode here for testing or read env.
data.Settings.FeatureToggles["default_sidebar_docked"] = setting.FeatureToggleConfig.DefaultSidebarDocked
// Example temporary hardcode for quick verification:
// data.Settings.FeatureToggles["default_sidebar_docked"] = false
// Instrumentation: log the runtime value so you can see where it's coming from
if c != nil {
c.Logger.Info("feature toggle value", "default_sidebar_docked", setting.FeatureToggleConfig.DefaultSidebarDocked)
} else if hs != nil && hs.log != nil {
hs.log.Info("feature toggle value", "default_sidebar_docked", setting.FeatureToggleConfig.DefaultSidebarDocked)
} else {
// quick-and-dirty fallback (will print to stdout)
fmt.Printf("feature toggle default_sidebar_docked=%v\n", setting.FeatureToggleConfig.DefaultSidebarDocked)
}
data.NavTree.Sort()
return &data, nil
-5
View File
@@ -267,11 +267,6 @@
<div id="reactRoot"></div>
<!-- Insert this just before the inline script that assigns window.grafanaBootData -->
<script>
// Optional quick local override for testing without changing server code:
// window.__defaultSidebarDocked = false;
</script>
<script src="/public/scripts/set-default-sidebar.js"></script>
<script nonce="[[.Nonce]]">