From 1a87b00354d1c64a4046f657e330ddfd68e37cc2 Mon Sep 17 00:00:00 2001 From: Lyn Nagara Date: Mon, 3 Jun 2019 16:12:43 -0700 Subject: [PATCH] feat(events-v2): Update columns to match mockup Minor fixes to table column names --- .../app/views/organizationEventsV2/data.jsx | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/sentry/static/sentry/app/views/organizationEventsV2/data.jsx b/src/sentry/static/sentry/app/views/organizationEventsV2/data.jsx index dc542313d99dd6..bd93839994ec84 100644 --- a/src/sentry/static/sentry/app/views/organizationEventsV2/data.jsx +++ b/src/sentry/static/sentry/app/views/organizationEventsV2/data.jsx @@ -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: [ @@ -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', }, @@ -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', }, @@ -79,6 +79,14 @@ export const SPECIAL_FIELDS = { ); }, }, + type: { + fields: ['event.type'], + renderFunc: (data, {onSearch}) => ( + onSearch(`event.type:${data['event.type']}`)}> + {data['event.type']} + + ), + }, project: { fields: ['project.name'], renderFunc: (data, {organization}) => { @@ -120,6 +128,14 @@ export const SPECIAL_FIELDS = { ), }, + error: { + fields: ['issue_title'], + renderFunc: data => {data.issue_title}, + }, + csp: { + fields: ['issue_title'], + renderFunc: data => {data.issue_title}, + }, event_count: { title: 'events', fields: ['event_count'], @@ -131,6 +147,7 @@ export const SPECIAL_FIELDS = { renderFunc: data => {data.user_count}, }, last_seen: { + title: 'last seen', fields: ['last_seen'], renderFunc: data => (