-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(discover2): Discover v2 table and friends #14403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
58d3443
to
d130c69
Compare
f7ed133
to
a276ec7
Compare
a276ec7
to
4581ac8
Compare
src/sentry/static/sentry/app/views/organizationEventsV2/table.tsx
Outdated
Show resolved
Hide resolved
src/sentry/static/sentry/app/views/organizationEventsV2/index.tsx
Outdated
Show resolved
Hide resolved
src/sentry/static/sentry/app/views/organizationEventsV2/relatedEvents.tsx
Outdated
Show resolved
Hide resolved
src/sentry/static/sentry/app/views/organizationEventsV2/table.tsx
Outdated
Show resolved
Hide resolved
8c3bb26
to
727d7e1
Compare
@@ -152,8 +152,11 @@ def test_modal_from_errors_view(self, mock_now): | |||
event_ids.append(event.event_id) | |||
|
|||
with self.feature(FEATURE_NAME): | |||
|
|||
error_view = 'field=%5B"title"%2C"error"%5D&field=%5B"count%28id%29"%2C"events"%5D&field=%5B"count_unique%28user%29"%2C"users"%5D&field=%5B"project"%2C"project"%5D&field=%5B"last_seen"%2C"last+seen"%5D&name=Errors&query=event.type%3Aerror&sort=-last_seen&sort=-title&tag=error.type&tag=project.name' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markstory I hardcoded this for now. We may need a utility function to encode some dict into query strings.
@leedongwei @markstory I've addressed the acceptance/js tests for this PR, and either of you can take over. Mark has some remaining feedback that are yet to be addressed (please see unresolved comments in the PR). |
const {defaultSort, location} = this.props; | ||
return location.query.sort ? location.query.sort : defaultSort; | ||
return typeof location.query.sort === 'string' ? location.query.sort : defaultSort; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
location.query.sort
can also be Array<string>
; if it is and non-empty, we can use the first item.
|
||
if (typeof name === 'string' && String(name).trim().length > 0) { | ||
return [t('Events'), String(name).trim()]; | ||
// return `${} \u2014 ${}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stray comment
WORK IN PROGRESS
Extends #14345
TODO
revamped data view schemaEDIT:EventView
class abstractionUnresolved
are there illegal characters for field name/aggr(name)?EDIT: addressed with JSON stringifyare there illegal characters for col name?EDIT: addressed with JSON stringifyDeferred
Closes SEN-806
Closes SEN-907