Chore: Register a feature flag for "newDBLibrary" (#57468)

This commit is contained in:
Ryan McKinley
2022-10-25 18:20:41 -07:00
committed by GitHub
parent 860380d893
commit a3acfb1a48
9 changed files with 20 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ import (
"github.com/grafana/grafana/pkg/infra/db"
"github.com/grafana/grafana/pkg/services/apikey"
"github.com/grafana/grafana/pkg/services/featuremgmt"
"github.com/grafana/grafana/pkg/setting"
)
@@ -13,7 +14,7 @@ type Service struct {
}
func ProvideService(db db.DB, cfg *setting.Cfg) apikey.Service {
if cfg.IsFeatureToggleEnabled("newDBLibrary") {
if cfg.IsFeatureToggleEnabled(featuremgmt.FlagNewDBLibrary) {
return &Service{
store: &sqlxStore{
sess: db.GetSqlxSession(),