Defaulted use case onboarding feature flag to true (#19690)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Maria A Nunez
2022-03-04 18:49:40 -05:00
коммит произвёл GitHub
родитель b70338071f
Коммит 3be329b5e8
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@@ -104,7 +104,7 @@ func (f *FeatureFlags) SetDefaults() {
f.BoardsDataRetention = false
f.NormalizeLdapDNs = false
f.EnableInactivityCheckJob = true
f.UseCaseOnboarding = false
f.UseCaseOnboarding = true
f.WorkspaceOptimizationDashboard = false
f.GraphQL = false
}

Просмотреть файл

@@ -24,6 +24,7 @@ func (s *TestStore) Close() {
func GetMockStoreForSetupFunctions() *mocks.Store {
mockStore := mocks.Store{}
systemStore := mocks.SystemStore{}
systemStore.On("GetByName", "FirstAdminSetupComplete").Return(&model.System{Name: "FirstAdminSetupComplete", Value: "true"}, nil)
systemStore.On("GetByName", "ContentExtractionConfigDefaultTrueMigrationComplete").Return(&model.System{Name: "ContentExtractionConfigDefaultTrueMigrationComplete", Value: "true"}, nil)
systemStore.On("GetByName", "UpgradedFromTE").Return(nil, model.NewAppError("FakeError", "app.system.get_by_name.app_error", nil, "", http.StatusInternalServerError))
systemStore.On("GetByName", "ContentExtractionConfigMigrationComplete").Return(&model.System{Name: "ContentExtractionConfigMigrationComplete", Value: "true"}, nil)