Browse Source

Revert "ref(uptime): Remove uptime-display-wizard-create flag usage (#78145)"

This reverts commit d79e4e4c8e065d431516345b6fd8fc0f2146db12.

Co-authored-by: gaprl <1308394+gaprl@users.noreply.github.com>
getsentry-bot 5 months ago
parent
commit
6d05f34715

+ 1 - 2
static/app/views/alerts/wizard/index.spec.tsx

@@ -70,11 +70,10 @@ describe('AlertWizard', () => {
     expect(screen.getByText('Errors')).toBeInTheDocument();
     expect(screen.getByText('Sessions')).toBeInTheDocument();
     expect(screen.getByText('Performance')).toBeInTheDocument();
-    expect(screen.getByText('Uptime Monitoring')).toBeInTheDocument();
     expect(screen.getByText('LLM Monitoring')).toBeInTheDocument();
     expect(screen.getByText('Custom')).toBeInTheDocument();
     const alertGroups = screen.getAllByRole('radiogroup');
-    expect(alertGroups.length).toEqual(6);
+    expect(alertGroups.length).toEqual(5);
   });
 
   it('should only render alerts for errors in self-hosted errors only', () => {

+ 6 - 4
static/app/views/alerts/wizard/options.tsx

@@ -144,10 +144,12 @@ export const getAlertWizardCategories = (org: Organization) => {
       });
     }
 
-    result.push({
-      categoryHeading: t('Uptime Monitoring'),
-      options: ['uptime_monitor'],
-    });
+    if (org.features.includes('uptime-display-wizard-create')) {
+      result.push({
+        categoryHeading: t('Uptime Monitoring'),
+        options: ['uptime_monitor'],
+      });
+    }
     result.push({
       categoryHeading: hasCustomMetrics(org) ? t('Metrics') : t('Custom'),
       options: [hasCustomMetrics(org) ? 'custom_metrics' : 'custom_transactions'],