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

Don't send minidumps if the endpoint isn't configured #1580

Merged
merged 3 commits into from
Nov 11, 2021

Conversation

imjoehaines
Copy link
Contributor

Goal

The minidumps endpoint has to be optional because we've already shipped endpoint validation that only requires notify & sessions. This means we have to handle the case where the minidumps endpoint is not present as we can't rely on it always being set

This PR adds a check to ensure the minidumps endpoint is set before starting the minidump delivery process and adds minidumps as an allowed value in the endpoints type definition

The minidumps endpoint has to remain optional to avoid a breaking change
in the config schema. However, if the endpoint is missing we attempt to
start delivery and this eventually triggers an error as the URL is
'undefined'
@imjoehaines imjoehaines requested a review from lemnik November 11, 2021 12:31
@github-actions
Copy link

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 41.54 kB 12.79 kB
After 41.54 kB 12.79 kB
± No change No change

code coverage diff

Ok File Lines Branches Functions Statements
/home/runner/work/bugsnag-js/bugsnag-js/packages/plugin-electron-deliver-minidumps/deliver-minidumps.js 50%
(+2.63%)
43.75%
(+8.04%)
33.33%
(+0%)
50.77%
(+2.38%)

Total:

Lines Branches Functions Statements
82.05%(+0.02%) 71.83%(+0.02%) 83.26%(+0%) 81.1%(+0.01%)

Generated by 🚫 dangerJS against a9814ce

@imjoehaines imjoehaines merged commit c145ced into integration/minidumps Nov 11, 2021
@imjoehaines imjoehaines deleted the minidumps/fix-endpoint-config branch November 11, 2021 14:47
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.

2 participants