Skip to content

Commit fcd123d

Browse files
authored
fix(discover): Use legacy project event redirect for discover error l… (#68952)
…inks This uses the legacy ProjectEventRedirect component that is still in use to redirect an error event without a trace id to the issue details page. Quering for the issue forces discover to use the errors table by default unless another condition uses the transactions table.
1 parent 45bf10a commit fcd123d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

static/app/views/discover/table/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ class Table extends PureComponent<TableProps, TableState> {
138138
// Note: Event ID or 'id' is added to the fields in the API payload response by default for all non-aggregate queries.
139139
if (!eventView.hasAggregateField()) {
140140
apiPayload.field.push('trace');
141-
apiPayload.field.push('issue');
142141
apiPayload.field.push('event.type');
143142
}
144143

static/app/views/discover/table/tableView.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,11 @@ function TableView(props: TableViewProps) {
207207
);
208208
}
209209

210+
const project = dataRow.project || dataRow['project.name'];
211+
210212
target = {
211-
pathname: `/organizations/${organization.slug}/issues/${dataRow['issue.id']}/events/${dataRow.id}/?referrer=discover-events-table`,
213+
// NOTE: This uses a legacy redirect for project event to the issue group event link
214+
pathname: `/${organization.slug}/${project}/events/${dataRow.id}/?referrer=discover-events-table`,
212215
query: location.query,
213216
};
214217
}
@@ -330,8 +333,11 @@ function TableView(props: TableViewProps) {
330333
);
331334
}
332335

336+
const project = dataRow.project || dataRow['project.name'];
337+
333338
target = {
334-
pathname: `/organizations/${organization.slug}/issues/${dataRow['issue.id']}/events/${dataRow.id}/?referrer=discover-events-table`,
339+
// NOTE: This uses a legacy redirect for project event to the issue group event link
340+
pathname: `/${organization.slug}/${project}/events/${dataRow.id}/?referrer=discover-events-table`,
335341
query: location.query,
336342
};
337343
}

0 commit comments

Comments
 (0)