Skip to content

Commit 7fa5686

Browse files
committed
Remove feature prefix
1 parent 49269d7 commit 7fa5686

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/sentry/static/sentry/app/components/events/eventCauseEmpty.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ class EventCauseEmpty extends React.Component {
4949
this.fetchData();
5050
}
5151

52-
componentDidUpdate(prevProps, prevState) {
52+
componentDidUpdate(_prevProps, prevState) {
5353
const {project, organization} = this.props;
5454
const {shouldShow} = this.state;
5555

5656
if (!prevState.shouldShow && shouldShow) {
5757
// send to reload only due to high event volume
5858
trackAdhocEvent({
59-
eventKey: 'feature.event_cause.viewed',
59+
eventKey: 'event_cause.viewed',
6060
org_id: parseInt(organization.id, 10),
6161
project_id: parseInt(project.id, 10),
6262
platform: project.platform,
@@ -134,7 +134,7 @@ class EventCauseEmpty extends React.Component {
134134
href="https://docs.sentry.io/workflow/releases/#create-release"
135135
onClick={() =>
136136
this.trackAnalytics({
137-
eventKey: 'feature.event_cause.docs_clicked',
137+
eventKey: 'event_cause.docs_clicked',
138138
eventName: 'Event Cause Docs Clicked',
139139
})
140140
}
@@ -150,7 +150,7 @@ class EventCauseEmpty extends React.Component {
150150
onClick={() =>
151151
this.handleClick({
152152
action: 'snoozed',
153-
eventKey: 'feature.event_cause.snoozed',
153+
eventKey: 'event_cause.snoozed',
154154
eventName: 'Event Cause Snoozed',
155155
})
156156
}
@@ -164,7 +164,7 @@ class EventCauseEmpty extends React.Component {
164164
onClick={() =>
165165
this.handleClick({
166166
action: 'dismissed',
167-
eventKey: 'feature.event_cause.dismissed',
167+
eventKey: 'event_cause.dismissed',
168168
eventName: 'Event Cause Dismissed',
169169
})
170170
}

tests/js/spec/components/events/eventCauseEmpty.spec.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('EventCauseEmpty', function() {
4343
expect(wrapper.find('CommitRow').exists()).toBe(true);
4444

4545
expect(trackAdhocEvent).toHaveBeenCalledWith({
46-
eventKey: 'feature.event_cause.viewed',
46+
eventKey: 'event_cause.viewed',
4747
org_id: parseInt(organization.id, 10),
4848
project_id: parseInt(project.id, 10),
4949
platform: project.platform,
@@ -80,7 +80,7 @@ describe('EventCauseEmpty', function() {
8080
expect(wrapper.find('CommitRow').exists()).toBe(false);
8181

8282
expect(trackAnalyticsEvent).toHaveBeenCalledWith({
83-
eventKey: 'feature.event_cause.snoozed',
83+
eventKey: 'event_cause.snoozed',
8484
eventName: 'Event Cause Snoozed',
8585
org_id: parseInt(organization.id, 10),
8686
project_id: parseInt(project.id, 10),
@@ -162,7 +162,7 @@ describe('EventCauseEmpty', function() {
162162
expect(wrapper.find('CommitRow').exists()).toBe(false);
163163

164164
expect(trackAnalyticsEvent).toHaveBeenCalledWith({
165-
eventKey: 'feature.event_cause.dismissed',
165+
eventKey: 'event_cause.dismissed',
166166
eventName: 'Event Cause Dismissed',
167167
org_id: parseInt(organization.id, 10),
168168
project_id: parseInt(project.id, 10),
@@ -203,7 +203,7 @@ describe('EventCauseEmpty', function() {
203203
.simulate('click');
204204

205205
expect(trackAnalyticsEvent).toHaveBeenCalledWith({
206-
eventKey: 'feature.event_cause.docs_clicked',
206+
eventKey: 'event_cause.docs_clicked',
207207
eventName: 'Event Cause Docs Clicked',
208208
org_id: parseInt(organization.id, 10),
209209
project_id: parseInt(project.id, 10),

0 commit comments

Comments
 (0)