-
Notifications
You must be signed in to change notification settings - Fork 251
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
V7: Rename autoCaptureSessions -> autoTrackSessions and simplify validation logic #647
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,11 +18,6 @@ const sessionDelegate = { | |
return sessionClient | ||
} | ||
|
||
if (!sessionClient.config.endpoints.sessions) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The config schema now validates that |
||
sessionClient._logger.warn('Session not sent due to missing endpoints.sessions configuration') | ||
return sessionClient | ||
} | ||
|
||
sessionClient._delivery.sendSession({ | ||
notifier: sessionClient.notifier, | ||
device: sessionClient.device, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,11 +37,6 @@ const sendSessionSummary = client => sessionCounts => { | |
return | ||
} | ||
|
||
if (!client.config.endpoints.sessions) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above, commenting here too for an equivalent change… the config schema now validates that |
||
client._logger.warn('Session not sent due to missing endpoints.sessions configuration') | ||
return | ||
} | ||
|
||
if (!sessionCounts.length) return | ||
|
||
const backoff = new Backoff({ min: 1000, max: 10000 }) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
var API_KEY = decodeURIComponent(window.location.search.match(/API_KEY=([^&]+)/)[1]) | ||
var bugsnagClient = bugsnag({ | ||
apiKey: API_KEY, | ||
endpoints: { notify: ENDPOINT }, | ||
endpoints: { notify: ENDPOINT, sessions: '/noop' }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Loads of the end-to-end tests that relied on being allowed to not set a custom session endpoint now need some value to satisfy the config validation, but all of these tests only make assertions about errors. I've set it to this value here (and many other places), which hopefully which suggests it's not used at all to appease the config validation. |
||
autoNotify: false | ||
}) | ||
</script> | ||
|
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.
the default value has not been updated in this PR, this comment was out of date.