mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
FeatureFlags: Support hiding from docs (#69261)
This commit is contained in:
parent
f3f3b1494d
commit
a61d828998
@ -49,7 +49,6 @@ Some stable features are enabled by default. You can disable a stable feature by
|
||||
| `panelTitleSearch` | Search for dashboards using panel title |
|
||||
| `prometheusAzureOverrideAudience` | Experimental. Allow override default AAD audience for Azure Prometheus endpoint |
|
||||
| `publicDashboards` | Enables public access to dashboards |
|
||||
| `publicDashboardsEmailSharing` | Enables public dashboard sharing to be restricted to only allowed emails |
|
||||
| `migrationLocking` | Lock database during migrations |
|
||||
| `correlations` | Correlations page |
|
||||
| `newDBLibrary` | Use jmoiron/sqlx rather than xorm for a few backend services |
|
||||
|
@ -96,4 +96,5 @@ type FeatureFlag struct {
|
||||
RequiresRestart bool `json:"requiresRestart,omitempty"` // The server must be initialized with the value
|
||||
RequiresLicense bool `json:"requiresLicense,omitempty"` // Must be enabled in the license
|
||||
FrontendOnly bool `json:"frontend,omitempty"` // change is only seen in the frontend
|
||||
HideFromDocs bool `json:"hideFromDocs,omitempty"` // don't add the values to docs
|
||||
}
|
||||
|
@ -59,6 +59,7 @@ var (
|
||||
State: FeatureStateBeta,
|
||||
RequiresLicense: true,
|
||||
Owner: grafanaDashboardsSquad,
|
||||
HideFromDocs: true,
|
||||
},
|
||||
{
|
||||
Name: "lokiLive",
|
||||
|
@ -309,7 +309,7 @@ func writeToggleDocsTable(include func(FeatureFlag) bool, showEnableByDefault bo
|
||||
data := [][]string{}
|
||||
|
||||
for _, flag := range standardFeatureFlags {
|
||||
if include(flag) {
|
||||
if include(flag) && !flag.HideFromDocs {
|
||||
row := []string{"`" + flag.Name + "`", flag.Description}
|
||||
if showEnableByDefault {
|
||||
on := ""
|
||||
|
Loading…
Reference in New Issue
Block a user