-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
fix: throw errors on insight creation failure #4145
Conversation
✅ Deploy Preview for design-insights ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for oss-insights ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
If you throw an error it will crash the entire frontend. You can use the Sentry error boundary component if throwing. Otherwise, consider logging the error exception to Sentry via captureException.
By default, if your application throws an error during rendering, React will remove its UI from the screen.
See https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary
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.
Thanks @zeucapua! 🚢
## [2.63.1-beta.1](v2.63.0...v2.63.1-beta.1) (2024-09-30) ### 🐛 Bug Fixes * throw errors on insight creation failure ([#4145](#4145)) ([e3f8db3](e3f8db3))
## [2.64.0](v2.63.0...v2.64.0) (2024-10-22) ### 🍕 Features * download `ContributorsTable` data as JSON/CSV ([#4151](#4151)) ([d87b37e](d87b37e)) * removed developer pack form from user settings page ([#4173](#4173)) ([da975d7](da975d7)) * removed payments and limits ([#4171](#4171)) ([898d889](898d889)) ### 🐛 Bug Fixes * a11y rule "iframe-has-title" fails with a warning. ([#4162](#4162)) ([f15764a](f15764a)) * a11y rule "img-redundant-alt" fails with a warning ([#4176](#4176)) ([cc9cdf0](cc9cdf0)) * a11y rule "no-noninteractive-element-interactions" ([#4163](#4163)) ([4d26abc](4d26abc)) * fixed changing workspaces visibility regression ([#4172](#4172)) ([ee12474](ee12474)) * Make the "create workspace" option more obvious ([#4177](#4177)) ([9d8ae39](9d8ae39)) * removed unused code ([#4178](#4178)) ([d6fff39](d6fff39)) * resolve a11y warnings for role-supports-aria-props rule ([#4174](#4174)) ([95e2099](95e2099)) * throw errors on insight creation failure ([#4145](#4145)) ([e3f8db3](e3f8db3)) * use a tags instead of link tags ([#4158](#4158)) ([7b48770](7b48770))
Description
Throw errors when failing to create a Repository or Contributor insight. To be captured in Sentry.
Related Tickets & Documents
Closes #4144
Mobile & Desktop Screenshots/Recordings
Steps to QA
Tier (staff will fill in)
[optional] What gif best describes this PR or how it makes you feel?