Skip to content
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

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

zeucapua
Copy link
Contributor

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)

  • Tier 1
  • Tier 2
  • Tier 3
  • Tier 4

[optional] What gif best describes this PR or how it makes you feel?

@zeucapua zeucapua requested a review from a team September 27, 2024 19:03
Copy link

netlify bot commented Sep 27, 2024

Deploy Preview for design-insights ready!

Name Link
🔨 Latest commit d500c4c
🔍 Latest deploy log https://app.netlify.com/sites/design-insights/deploys/66f710cc505687000888899e
😎 Deploy Preview https://deploy-preview-4145--design-insights.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Sep 27, 2024

Deploy Preview for oss-insights ready!

Name Link
🔨 Latest commit d500c4c
🔍 Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/66f710ccc4310900086124f8
😎 Deploy Preview https://deploy-preview-4145--oss-insights.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@nickytonline nickytonline left a 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

Copy link
Member

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zeucapua! 🚢

@brandonroberts brandonroberts added this pull request to the merge queue Sep 30, 2024
Merged via the queue into beta with commit e3f8db3 Sep 30, 2024
13 checks passed
@brandonroberts brandonroberts deleted the fix/create-insight-throw-errors branch September 30, 2024 14:18
open-sauced bot pushed a commit that referenced this pull request Sep 30, 2024
## [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))
open-sauced bot pushed a commit that referenced this pull request Oct 22, 2024
## [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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Throw errors on failed insight creation
3 participants