Просмотр исходного кода

ref(perf-issues): Add GA option UI (#39935)

Allows the option to be modified, still in system manage since admin
changes will take a while if we chose to do them.

Requires https://github.com/getsentry/sentry/pull/39933
Kev 2 лет назад
Родитель
Сommit
95096e49da
2 измененных файлов с 10 добавлено и 0 удалено
  1. 2 0
      static/app/views/admin/adminSettings.tsx
  2. 8 0
      static/app/views/admin/options.tsx

+ 2 - 0
static/app/views/admin/adminSettings.tsx

@@ -20,6 +20,7 @@ const optionsAvailable = [
   'performance.issues.all.problem-detection',
   'performance.issues.all.problem-creation',
   'performance.issues.all.early-adopter-rollout',
+  'performance.issues.all.general-availability-rollout',
   'performance.issues.all.post-process-group-early-adopter-rollout',
   'performance.issues.n_plus_one_db.problem-creation',
   'performance.issues.n_plus_one_db_ext.problem-creation',
@@ -103,6 +104,7 @@ export default class AdminSettings extends AsyncView<{}, State> {
               {fields['performance.issues.all.problem-detection']}
               {fields['performance.issues.all.problem-creation']}
               {fields['performance.issues.all.early-adopter-rollout']}
+              {fields['performance.issues.all.general-availability-rollout']}
               {fields['performance.issues.all.post-process-group-early-adopter-rollout']}
             </Panel>
             <Panel>

+ 8 - 0
static/app/views/admin/options.tsx

@@ -86,6 +86,14 @@ const performanceOptionDefinitions: Field[] = [
     ),
     ...HIGH_THROUGHPUT_RATE_OPTION,
   },
+  {
+    key: 'performance.issues.all.general-availability-rollout',
+    label: t('Performance issues creation GA Rollout'),
+    help: t(
+      'Controls the rate at which performance issues are created for all organizations.'
+    ),
+    ...HIGH_THROUGHPUT_RATE_OPTION,
+  },
   {
     key: 'performance.issues.all.post-process-group-early-adopter-rollout',
     label: t('Performance issues post process group EA Rollout'),