Ghost/ghost/core/test
Chris Raible a97e2b823e
Added error handling to Sentry's beforeSend (#19109)
refs TryGhost/Product#4175

- Added error handling to Sentry's beforeSend function in both Admin and
Core, so if there is any error in beforeSend, we will still send the
unmodified event to Sentry
- This is in response to an incident yesterday wherein the beforeSend
function threw an error due to an unexpected missing value in the
exception. The event sent to Sentry was the error in the beforeSend
function, and the original error never reached Sentry.
- If the original event had reached Sentry, even if unmodified by the
logic in beforeSend, we could have been alerted to the issue sooner and
more easily identified all affected sites.
- Also added defensive logic to protect for certain values in the
exception passed to beforeSend not existing and added unit tests for the
beforeSend function in admin and core
2023-11-23 02:46:50 +00:00
..
e2e-api Removed usage of unquoted ids in filter strings (#19070) 2023-11-21 09:45:36 +01:00
e2e-browser Updated publishing spec to use a more consistent timezone (#18873) 2023-11-06 07:49:43 +00:00
e2e-frontend Fixed deleting session when requesting identity for invalid session (#19017) 2023-11-16 11:01:50 +00:00
e2e-server Removed usage of unquoted ids in filter strings (#19070) 2023-11-21 09:45:36 +01:00
e2e-webhooks Cleaned up lexicalEditor labs flag, switched Post model to lexical-by-default (#18607) 2023-10-23 17:51:34 +01:00
integration Removed usage of unquoted ids in filter strings (#19070) 2023-11-21 09:45:36 +01:00
regression Removed usage of unquoted ids in filter strings (#19070) 2023-11-21 09:45:36 +01:00
unit Added error handling to Sentry's beforeSend (#19109) 2023-11-23 02:46:50 +00:00
utils Revert "Removed usage of unquoted ids in filter strings" (#19052) 2023-11-20 13:50:07 +00:00
.eslintignore Added Source as the new default theme 2023-10-03 14:02:08 +02:00
.eslintrc.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00