Chore: assign feature flag ownership for GaaS (#64420)

* ownership for GaaS

* fix tests

* merge
pull/64448/head
Artur Wierzbicki 2 years ago committed by GitHub
parent 74ed7ead16
commit 3e89ffa2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      pkg/services/featuremgmt/codeowners.go
  2. 4
      pkg/services/featuremgmt/registry.go
  3. 24
      pkg/services/featuremgmt/toggles_gen_test.go

@ -18,4 +18,5 @@ const (
grafanaObservabilityLogsSquad codeowner = "@grafana/observability-logs"
grafanaObservabilityTracesAndProfilingSquad codeowner = "@grafana/observability-traces-and-profiling"
grafanaAlertingSquad codeowner = "@grafana/alerting-squad"
hostedGrafanaTeam codeowner = "@grafana/hosted-grafana-team"
)

@ -31,6 +31,7 @@ var (
Name: "database_metrics",
Description: "Add Prometheus metrics for database tables",
State: FeatureStateStable,
Owner: hostedGrafanaTeam,
},
{
Name: "dashboardPreviews",
@ -228,11 +229,13 @@ var (
Description: "Disable duplicated secret storage in legacy tables",
State: FeatureStateAlpha,
RequiresRestart: true,
Owner: hostedGrafanaTeam,
},
{
Name: "logRequestsInstrumentedAsUnknown",
Description: "Logs the path for requests that are instrumented as unknown",
State: FeatureStateAlpha,
Owner: hostedGrafanaTeam,
},
{
Name: "dataConnectionsConsole",
@ -343,6 +346,7 @@ var (
Name: "secureSocksDatasourceProxy",
Description: "Enable secure socks tunneling for supported core datasources",
State: FeatureStateAlpha,
Owner: hostedGrafanaTeam,
},
{
Name: "authnService",

@ -42,20 +42,16 @@ func TestFeatureToggleFiles(t *testing.T) {
})
ownerlessFeatures := map[string]bool{
"database_metrics": true,
"prometheusAzureOverrideAudience": true,
"tracing": true,
"cloudWatchDynamicLabels": true,
"disableSecretsCompatibility": true,
"logRequestsInstrumentedAsUnknown": true,
"cloudWatchCrossAccountQuerying": true,
"redshiftAsyncQueryDataSupport": true,
"athenaAsyncQueryDataSupport": true,
"newPanelChromeUI": true,
"showDashboardValidationWarnings": true,
"datasourceOnboarding": true,
"secureSocksDatasourceProxy": true,
"individualCookiePreferences": true,
"prometheusAzureOverrideAudience": true,
"tracing": true,
"cloudWatchDynamicLabels": true,
"cloudWatchCrossAccountQuerying": true,
"redshiftAsyncQueryDataSupport": true,
"athenaAsyncQueryDataSupport": true,
"newPanelChromeUI": true,
"showDashboardValidationWarnings": true,
"datasourceOnboarding": true,
"individualCookiePreferences": true,
}
t.Run("all new features should have an owner", func(t *testing.T) {

Loading…
Cancel
Save