Skip to content

Commit

Permalink
feat(events-v2): Update columns to match mockup
Browse files Browse the repository at this point in the history
Minor fixes to table column names
  • Loading branch information
lynnagara committed Jun 4, 2019
1 parent 7c83fff commit 1a87b00
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions src/sentry/static/sentry/app/views/organizationEventsV2/data.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const ALL_VIEWS = deepFreeze([
id: 'all',
name: 'All Events',
data: {
fields: ['event', 'event.type', 'project', 'user', 'time'],
fields: ['event', 'type', 'project', 'user', 'time'],
sort: '-timestamp',
},
tags: [
Expand All @@ -33,7 +33,7 @@ export const ALL_VIEWS = deepFreeze([
id: 'errors',
name: 'Errors',
data: {
fields: ['issue_title', 'event_count', 'user_count', 'project', 'last_seen'],
fields: ['error', 'event_count', 'user_count', 'project', 'last_seen'],
groupby: ['issue.id', 'project.id'],
sort: '-last_seen',
},
Expand All @@ -43,7 +43,7 @@ export const ALL_VIEWS = deepFreeze([
id: 'csp',
name: 'CSP',
data: {
fields: ['issue_title', 'event_count', 'user_count', 'project', 'last_seen'],
fields: ['csp', 'event_count', 'user_count', 'project', 'last_seen'],
groupby: ['issue.id', 'project.id'],
sort: '-last_seen',
},
Expand Down Expand Up @@ -79,6 +79,14 @@ export const SPECIAL_FIELDS = {
);
},
},
type: {
fields: ['event.type'],
renderFunc: (data, {onSearch}) => (
<QueryLink onClick={() => onSearch(`event.type:${data['event.type']}`)}>
{data['event.type']}
</QueryLink>
),
},
project: {
fields: ['project.name'],
renderFunc: (data, {organization}) => {
Expand Down Expand Up @@ -120,6 +128,14 @@ export const SPECIAL_FIELDS = {
</Container>
),
},
error: {
fields: ['issue_title'],
renderFunc: data => <Container>{data.issue_title}</Container>,
},
csp: {
fields: ['issue_title'],
renderFunc: data => <Container>{data.issue_title}</Container>,
},
event_count: {
title: 'events',
fields: ['event_count'],
Expand All @@ -131,6 +147,7 @@ export const SPECIAL_FIELDS = {
renderFunc: data => <Container>{data.user_count}</Container>,
},
last_seen: {
title: 'last seen',
fields: ['last_seen'],
renderFunc: data => (
<Container>
Expand Down

0 comments on commit 1a87b00

Please sign in to comment.