Skip to content

Conversation

@k-fish
Copy link
Member

@k-fish k-fish commented Oct 8, 2021

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.

@k-fish k-fish requested a review from a team October 8, 2021 15:59
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2021

size-limit report

Path Base Size (a906594) Current Size Change
src/sentry/static/sentry/dist/entrypoints/app.js 52.68 KB 52.68 KB -0.01% 🔽
src/sentry/static/sentry/dist/entrypoints/sentry.css 70.9 KB 70.9 KB 0%

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.
Copy link
Member

@Zylphrex Zylphrex left a 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});
Copy link
Member

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);
Copy link
Member

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');
Copy link
Member

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.

@k-fish k-fish merged commit a58a275 into master Oct 19, 2021
@k-fish k-fish deleted the feat/perf-landing-widgets-most-errors branch October 19, 2021 21:21
getsentry-bot added a commit that referenced this pull request Oct 19, 2021
…29209)"

This reverts commit a58a275.

Co-authored-by: kevan.fisher via Slack <kevan.fisher@sentry.io>
k-fish added a commit that referenced this pull request Oct 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants