Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Sep 18, 2023
1 parent 6b976d1 commit a1e3557
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion apps/meteor/server/settings/troubleshoot.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import semver from 'semver';

import { settingsRegistry } from '../../app/settings/server';
import { Info } from '../../app/utils/rocketchat.info';

export const createTroubleshootSettings = () =>
settingsRegistry.addGroup('Troubleshoot', async function () {
Expand All @@ -19,6 +22,7 @@ export const createTroubleshootSettings = () =>
i18nDescription: 'Troubleshoot_Disable_Presence_Broadcast_Alert',
enableQuery: { _id: 'Presence_broadcast_disabled', value: false },
});

await this.add('Troubleshoot_Disable_Instance_Broadcast', false, {
type: 'boolean',
i18nDescription: 'Troubleshoot_Disable_Instance_Broadcast_Alert',
Expand All @@ -31,13 +35,34 @@ export const createTroubleshootSettings = () =>
type: 'boolean',
i18nDescription: 'Troubleshoot_Disable_Livechat_Activity_Monitor_Alert',
});

await this.add('Troubleshoot_Disable_Data_Exporter_Processor', false, {
type: 'boolean',
i18nDescription: 'Troubleshoot_Disable_Data_Exporter_Processor_Alert',
});

await this.add('Troubleshoot_Disable_Teams_Mention', false, {
type: 'boolean',
i18nDescription: 'Troubleshoot_Disable_Teams_Mention_Alert',
});

if (!semver.lt('7.0.0', Info.version)) {
console.log('remove troubleshoot this setting at next major (7.0.0)');
}

// TODO: remove this setting at next major (7.0.0)
await this.add('Troubleshoot_Disable_Statistics_Generator', false, {
type: 'boolean',
i18nDescription: 'Troubleshoot_Disable_Statistics_Generator_Alert',
private: true,
hidden: true,
readonly: true,
});
// TODO: remove this setting at next major (7.0.0)
await this.add('Troubleshoot_Disable_Workspace_Sync', false, {
type: 'boolean',
i18nDescription: 'Troubleshoot_Disable_Workspace_Sync_Alert',
private: true,
hidden: true,
readonly: true,
});
});

0 comments on commit a1e3557

Please sign in to comment.