Skip to content

Commit 073fccf

Browse files
committed
chore: Remove seer.drawer.opened event (not part of ticket requirements)
1 parent 7dd4d3d commit 073fccf

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

static/app/utils/analytics/issueAnalyticsEvents.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,6 @@ export type IssueEventParameters = {
442442
source: string;
443443
};
444444
resolve_issue: {release: string};
445-
'seer.drawer.opened': {
446-
group_id: string;
447-
has_autofix_data: boolean;
448-
};
449445
'settings.inbound_filter_updated': {
450446
filter: string;
451447
new_state: FieldValue;
@@ -475,7 +471,6 @@ export const issueEventMap: Record<IssueEventKey, string | null> = {
475471
'autofix.root_cause.find_solution': 'Autofix: Root Cause Find Solution',
476472
'autofix.root_cause.rerun_with_context': 'Autofix: Root Cause Rerun with Context',
477473
'autofix.setup_modal_viewed': 'Autofix: Setup Modal Viewed',
478-
'seer.drawer.opened': 'Seer: Drawer Opened',
479474
'breadcrumbs.issue_details.change_time_display': 'Breadcrumb Time Display Toggled',
480475
'breadcrumbs.issue_details.drawer_opened': 'Breadcrumb Drawer Opened',
481476
'breadcrumbs.drawer.action': 'Breadcrumb Drawer Action Taken',

static/app/views/issueDetails/streamline/sidebar/seerDrawer.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import {space} from 'sentry/styles/space';
2828
import type {Event} from 'sentry/types/event';
2929
import type {Group} from 'sentry/types/group';
3030
import type {Project} from 'sentry/types/project';
31-
import {trackAnalytics} from 'sentry/utils/analytics';
3231
import {getShortEventId} from 'sentry/utils/events';
3332
import useRouteAnalyticsParams from 'sentry/utils/routeAnalytics/useRouteAnalyticsParams';
3433
import {useLocation} from 'sentry/utils/useLocation';
@@ -345,12 +344,10 @@ export const useOpenSeerDrawer = ({
345344
group,
346345
project,
347346
event,
348-
autofixData,
349347
}: {
350348
event: Event | null;
351349
group: Group;
352350
project: Project;
353-
autofixData?: any;
354351
buttonRef?: React.RefObject<HTMLButtonElement | null>;
355352
}) => {
356353
const {openDrawer} = useDrawer();
@@ -367,12 +364,6 @@ export const useOpenSeerDrawer = ({
367364
return;
368365
}
369366

370-
trackAnalytics('seer.drawer.opened', {
371-
organization,
372-
group_id: group.id,
373-
has_autofix_data: !!autofixData,
374-
});
375-
376367
openDrawer(() => <SeerDrawer group={group} project={project} event={event} />, {
377368
ariaLabel: t('Seer drawer'),
378369
drawerKey: 'seer-autofix-drawer',
@@ -393,7 +384,7 @@ export const useOpenSeerDrawer = ({
393384
);
394385
},
395386
});
396-
}, [openDrawer, event, group, project, location, navigate, organization, autofixData]);
387+
}, [openDrawer, event, group, project, location, navigate, organization]);
397388

398389
return {openSeerDrawer};
399390
};

static/app/views/issueDetails/streamline/sidebar/seerSectionCtaButton.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export function SeerSectionCtaButton({
6060
group,
6161
project,
6262
event,
63-
autofixData,
6463
buttonRef: openButtonRef,
6564
});
6665

0 commit comments

Comments
 (0)