Access: Remove split scopes feature toggle (#81874)

* remove split scopes FT

* Revert "remove split scopes FT"

This reverts commit 349fb081d3.

* make toggle deprecated instead

* fix gen
This commit is contained in:
Jo 2024-02-05 17:00:19 +01:00 committed by GitHub
parent 596e828150
commit 7852ea012d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 14 deletions

View File

@ -45,7 +45,6 @@ Some features are enabled by default. You can disable these feature by setting t
| `recordedQueriesMulti` | Enables writing multiple items from a single query within Recorded Queries | Yes | | `recordedQueriesMulti` | Enables writing multiple items from a single query within Recorded Queries | Yes |
| `transformationsRedesign` | Enables the transformations redesign | Yes | | `transformationsRedesign` | Enables the transformations redesign | Yes |
| `awsAsyncQueryCaching` | Enable caching for async queries for Redshift and Athena. Requires that the datasource has caching and async query support enabled | Yes | | `awsAsyncQueryCaching` | Enable caching for async queries for Redshift and Athena. Requires that the datasource has caching and async query support enabled | Yes |
| `splitScopes` | Support faster dashboard and folder search by splitting permission scopes into parts | Yes |
| `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes | | `prometheusConfigOverhaulAuth` | Update the Prometheus configuration page with the new auth component | Yes |
| `influxdbSqlSupport` | Enable InfluxDB SQL query language support with new querying UI | Yes | | `influxdbSqlSupport` | Enable InfluxDB SQL query language support with new querying UI | Yes |
| `alertingNoDataErrorExecution` | Changes how Alerting state manager handles execution of NoData/Error | Yes | | `alertingNoDataErrorExecution` | Changes how Alerting state manager handles execution of NoData/Error | Yes |

View File

@ -50,14 +50,12 @@ func ProvideService(cfg *setting.Cfg, db db.DB, routeRegister routing.RouteRegis
return nil, err return nil, err
} }
if features.IsEnabledGlobally(featuremgmt.FlagSplitScopes) { // Migrating scopes that haven't been split yet to have kind, attribute and identifier in the DB
// Migrating scopes that haven't been split yet to have kind, attribute and identifier in the DB // This will be removed once we've:
// This will be removed once we've: // 1) removed the feature toggle and
// 1) removed the feature toggle and // 2) have released enough versions not to support a version without split scopes
// 2) have released enough versions not to support a version without split scopes if err := migrator.MigrateScopeSplit(db, service.log); err != nil {
if err := migrator.MigrateScopeSplit(db, service.log); err != nil { return nil, err
return nil, err
}
} }
return service, nil return service, nil

View File

@ -667,9 +667,7 @@ func (s *store) createPermissions(sess *db.Session, roleID int64, resource, reso
p.RoleID = roleID p.RoleID = roleID
p.Created = time.Now() p.Created = time.Now()
p.Updated = time.Now() p.Updated = time.Now()
if s.features.IsEnabledGlobally(featuremgmt.FlagSplitScopes) { p.Kind, p.Attribute, p.Identifier = p.SplitScope()
p.Kind, p.Attribute, p.Identifier = p.SplitScope()
}
permissions = append(permissions, p) permissions = append(permissions, p)
} }

View File

@ -731,7 +731,7 @@ var (
{ {
Name: "splitScopes", Name: "splitScopes",
Description: "Support faster dashboard and folder search by splitting permission scopes into parts", Description: "Support faster dashboard and folder search by splitting permission scopes into parts",
Stage: FeatureStageGeneralAvailability, Stage: FeatureStageDeprecated,
FrontendOnly: false, FrontendOnly: false,
Expression: "true", // enabled by default Expression: "true", // enabled by default
Owner: identityAccessTeam, Owner: identityAccessTeam,

View File

@ -85,7 +85,7 @@ grafanaAPIServerWithExperimentalAPIs,experimental,@grafana/grafana-app-platform-
grafanaAPIServerEnsureKubectlAccess,experimental,@grafana/grafana-app-platform-squad,2023-12-06,true,true,false grafanaAPIServerEnsureKubectlAccess,experimental,@grafana/grafana-app-platform-squad,2023-12-06,true,true,false
featureToggleAdminPage,experimental,@grafana/grafana-operator-experience-squad,2023-07-18,false,true,false featureToggleAdminPage,experimental,@grafana/grafana-operator-experience-squad,2023-07-18,false,true,false
awsAsyncQueryCaching,GA,@grafana/aws-datasources,2023-07-21,false,false,false awsAsyncQueryCaching,GA,@grafana/aws-datasources,2023-07-21,false,false,false
splitScopes,GA,@grafana/identity-access-team,2023-07-21,false,true,false splitScopes,deprecated,@grafana/identity-access-team,2023-07-21,false,true,false
permissionsFilterRemoveSubquery,experimental,@grafana/backend-platform,2023-08-02,false,false,false permissionsFilterRemoveSubquery,experimental,@grafana/backend-platform,2023-08-02,false,false,false
prometheusConfigOverhaulAuth,GA,@grafana/observability-metrics,2023-07-21,false,false,false prometheusConfigOverhaulAuth,GA,@grafana/observability-metrics,2023-07-21,false,false,false
configurableSchedulerTick,experimental,@grafana/alerting-squad,2023-07-26,false,true,false configurableSchedulerTick,experimental,@grafana/alerting-squad,2023-07-26,false,true,false

1 Name Stage Owner Created requiresDevMode RequiresRestart FrontendOnly
85 grafanaAPIServerEnsureKubectlAccess experimental @grafana/grafana-app-platform-squad 2023-12-06 true true false
86 featureToggleAdminPage experimental @grafana/grafana-operator-experience-squad 2023-07-18 false true false
87 awsAsyncQueryCaching GA @grafana/aws-datasources 2023-07-21 false false false
88 splitScopes GA deprecated @grafana/identity-access-team 2023-07-21 false true false
89 permissionsFilterRemoveSubquery experimental @grafana/backend-platform 2023-08-02 false false false
90 prometheusConfigOverhaulAuth GA @grafana/observability-metrics 2023-07-21 false false false
91 configurableSchedulerTick experimental @grafana/alerting-squad 2023-07-26 false true false