Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: only backfill SQLEditor Activity when not in readonly mode (#4193)
Tianzhou (天舟)dcfef11c1d2b
diff --git a/server/server.go b/server/server.goindex 447e2e5a97..65e082ae34 100644--- a/server/server.go+++ b/server/server.go@@ -276,8 +276,10 @@ func NewServer(ctx context.Context, profile config.Profile) (*Server, error) {storeInstance := store.New(storeDB)s.store = storeInstance// TODO(d): backfill activity. Remove this whenever the backfill is completed over the time.- if err := storeInstance.BackfillSQLEditorActivity(ctx); err != nil {- return nil, errors.Wrap(err, "cannot backfill SQL editor activities")+ if !s.profile.Readonly {+ if err := storeInstance.BackfillSQLEditorActivity(ctx); err != nil {+ return nil, errors.Wrap(err, "cannot backfill SQL editor activities")+ }}s.licenseService, err = enterpriseService.NewLicenseService(profile.Mode, storeInstance)