mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
c41b08bd59
* Encapsulate settings with a provider with support for runtime reloads * SettingsProvider: reload is controlled by the services * naive impl of reload handlers for settings * working naive detection on new changes * Trigger settings reload from API endpoint * validation step added * validation of settings * Fix linting errors * Replace DB_Varchar by DB_NVarchar * Reduce settings columns (section, key) lenghts * wip db update logic * Db Settings: separate updates and removals * Fix: removes incorrectly added code * Minor code improvements * Runtime settings: moved oss -> ee * Remove no longer used setting.Cfg SAML-related fields * Rename file setting/settings.go => setting/provider.go * Apply suggestions from code review Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> * Minor code improvements on OSS settings provider * Fix some login API tests * Correct some GoDoc comments * Apply suggestions from code review Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com> Co-authored-by: Leonard Gram <leo@xlson.com> Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
39 lines
1.3 KiB
Go
39 lines
1.3 KiB
Go
package extensions
|
|
|
|
import (
|
|
// Upgrade ldapsync from cron to cron.v3 and
|
|
// remove the cron (v1) dependency
|
|
|
|
_ "github.com/beevik/etree"
|
|
_ "github.com/cortexproject/cortex/pkg/util"
|
|
_ "github.com/crewjam/saml"
|
|
_ "github.com/gobwas/glob"
|
|
"github.com/grafana/grafana/pkg/registry"
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol/ossaccesscontrol"
|
|
"github.com/grafana/grafana/pkg/services/licensing"
|
|
"github.com/grafana/grafana/pkg/services/validations"
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
_ "github.com/grafana/loki/pkg/logproto"
|
|
_ "github.com/grafana/loki/pkg/promtail/client"
|
|
_ "github.com/grpc-ecosystem/go-grpc-middleware"
|
|
_ "github.com/jung-kurt/gofpdf"
|
|
_ "github.com/linkedin/goavro/v2"
|
|
_ "github.com/pkg/errors"
|
|
_ "github.com/robfig/cron"
|
|
_ "github.com/robfig/cron/v3"
|
|
_ "github.com/russellhaering/goxmldsig"
|
|
_ "github.com/stretchr/testify/require"
|
|
_ "github.com/timberio/go-datemath"
|
|
_ "golang.org/x/time/rate"
|
|
_ "gopkg.in/square/go-jose.v2"
|
|
)
|
|
|
|
func init() {
|
|
registry.RegisterService(&licensing.OSSLicensingService{})
|
|
registry.RegisterService(&validations.OSSPluginRequestValidator{})
|
|
registry.RegisterService(&ossaccesscontrol.OSSAccessControlService{})
|
|
registry.RegisterService(&setting.OSSImpl{})
|
|
}
|
|
|
|
var IsEnterprise bool = false
|