Skip to content

Commit

Permalink
ref(uptime): Remove uptime-display-wizard-create flag usage (#78145)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser authored and michellewzhang committed Sep 25, 2024
1 parent 6b6d993 commit 5f4129c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion 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
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 5f4129c

Please sign in to comment.