-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(perf): Add landing widgets for most issues and errors #29209
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
size-limit report
|
This adds some list components and a new widget type for chart/list hybrid widgets. It's called lineChartListWidget currently, but is using the area widget for now since it's already setup with previous periods etc.
190b949 to
b5007a0
Compare
Zylphrex
left a comment
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.
None of the comments are blocking as this is behind a feature flag and can be addressed in a follow-up.
| setNextWidgetData({...nextWidgetData, [dataKey]: result}); | ||
| } | ||
| if (result?.hasData || result?.isErrored) { | ||
| setNextWidgetData({...nextWidgetData, [dataKey]: result}); |
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.
Is this call necessary? If result?.hasData || result?.isErrored ever evaluates to true, result will always be true and set the widget data to the same thing right?
| results: GenericChildrenProps<TableData>, | ||
| _: QueryDefinitionWithKey<T> | ||
| ) { | ||
| const {start, end, utc, interval, statsPeriod} = getParams(widgetProps.location.query); |
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.
Is this using the default stats period of 14d? Performance uses 24h.
| eventView.additionalConditions.setFilterValues('event.type', ['error']); | ||
| eventView.additionalConditions.setFilterValues('!tags[transaction]', ['']); | ||
| const mutableSearch = new MutableSearch(eventView.query); | ||
| mutableSearch.removeFilter('transaction.duration'); |
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.
I think you want to do something similar to how related issues work and remove all tracing fields and a few other things as well. And repeat this for all the places that need it.
Summary
This adds some list components and a new widget type for chart/list hybrid widgets. It's called lineChartListWidget currently, but is using the area widget for now since it's already setup with previous periods etc.
Other
Also adds a generic selectable list with radio buttons that handles display. State for the index selected is still owned by the parent component.