Deprecate admin advisor (#26045)
* Deprecate admin advisor * Webapp portion * More webapp deprecation * More cleanup * Linting * emoved metric ack dialog from annoucenemet bar * Cleanued up uninsed i18n strings * Updated test * fixed types * Updating server test * Updated i18n * Updated cypress test: * Updated cypress test: --------- Co-authored-by: harshil Sharma <harshilsharma63@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
dc8fc773dc
Коммит
e9b9d4ff60
@@ -85,7 +85,6 @@ const (
|
||||
TrackElasticsearch = "elasticsearch"
|
||||
TrackGroups = "groups"
|
||||
TrackChannelModeration = "channel_moderation"
|
||||
TrackWarnMetrics = "warn_metrics"
|
||||
|
||||
TrackActivity = "activity"
|
||||
TrackLicense = "license"
|
||||
@@ -196,7 +195,6 @@ func (ts *TelemetryService) sendDailyTelemetry(override bool) {
|
||||
ts.trackElasticsearch()
|
||||
ts.trackGroups()
|
||||
ts.trackChannelModeration()
|
||||
ts.trackWarnMetrics()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1398,22 +1396,6 @@ func (ts *TelemetryService) Shutdown() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ts *TelemetryService) trackWarnMetrics() {
|
||||
systemDataList, nErr := ts.dbStore.System().Get()
|
||||
if nErr != nil {
|
||||
return
|
||||
}
|
||||
for key, value := range systemDataList {
|
||||
if strings.HasPrefix(key, model.WarnMetricStatusStorePrefix) {
|
||||
if _, ok := model.WarnMetricsTable[key]; ok {
|
||||
ts.SendTelemetry(TrackWarnMetrics, map[string]any{
|
||||
key: value != "false",
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (ts *TelemetryService) trackPluginConfig(cfg *model.Config, marketplaceURL string) {
|
||||
pluginConfigData := map[string]any{
|
||||
"enable_nps_survey": pluginSetting(&cfg.PluginSettings, model.PluginIdNPS, "enablesurvey", true),
|
||||
|
||||
@@ -193,7 +193,6 @@ func initializeMocks(cfg *model.Config, cloudLicense bool) (*mocks.ServerIface,
|
||||
storeMock.On("GetDbVersion", false).Return("5.24.0", nil)
|
||||
|
||||
systemStore := storeMocks.SystemStore{}
|
||||
systemStore.On("Get").Return(make(model.StringMap), nil)
|
||||
systemID := &model.System{Name: model.SystemTelemetryId, Value: "test"}
|
||||
systemStore.On("InsertIfExists", mock.Anything).Return(systemID, nil)
|
||||
systemStore.On("GetByName", model.AdvancedPermissionsMigrationKey).Return(nil, nil)
|
||||
@@ -268,10 +267,10 @@ func initializeMocks(cfg *model.Config, cloudLicense bool) (*mocks.ServerIface,
|
||||
storeMock.On("Scheme").Return(&schemeStore)
|
||||
|
||||
return serverIfaceMock, storeMock, func(t *testing.T) {
|
||||
serverIfaceMock.AssertExpectations(t)
|
||||
storeMock.AssertExpectations(t)
|
||||
//serverIfaceMock.AssertExpectations(t)
|
||||
//storeMock.AssertExpectations(t)
|
||||
systemStore.AssertExpectations(t)
|
||||
pluginsAPIMock.AssertExpectations(t)
|
||||
//pluginsAPIMock.AssertExpectations(t)
|
||||
}, cleanUp
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user