Skip to content

Commit

Permalink
Reapply "ref(uptime): Remove uptime-display-wizard-create flag usage" (
Browse files Browse the repository at this point in the history
…#79132)

This reverts commit 6d05f34.
  • Loading branch information
evanpurkhiser authored Oct 16, 2024
1 parent 094a031 commit 6d007c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions static/app/views/alerts/wizard/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ 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(5);
expect(alertGroups.length).toEqual(6);
});

it('should only render alerts for errors in self-hosted errors only', () => {
Expand Down Expand Up @@ -112,7 +113,6 @@ describe('AlertWizard', () => {
'incidents',
'performance-view',
'crash-rate-alerts',
'uptime-display-wizard-create',
],
access: ['org:write', 'alerts:write'],
},
Expand Down
10 changes: 4 additions & 6 deletions static/app/views/alerts/wizard/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,10 @@ export const getAlertWizardCategories = (org: Organization) => {
});
}

if (org.features.includes('uptime-display-wizard-create')) {
result.push({
categoryHeading: t('Uptime Monitoring'),
options: ['uptime_monitor'],
});
}
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'],
Expand Down

0 comments on commit 6d007c0

Please sign in to comment.