Ghost/ghost
Chris Raible 9a8c703e34
Improved error handling for SQL errors (#18797)
refs TryGhost/Product#4083

- In the vast majority of cases, we shouldn't have SQL errors in our
code. Due to some limitations with validating e.g. nql filters passed to
the API, sometimes we don't catch these errors and they bubble up to the
user.
- In these rare cases, Ghost was returning the raw SQL error from mysql
which is not very user friendly and also exposes information about the
database, which generally is not a good practice.
- To make things worse, Sentry was treating every instance of these
errors as a unique issue, even when it was exactly the same query
failing over and over.
- This change improves the error message returned from the API, and also
makes sure that Sentry will group all these errors together, so we can
easily see how many times they are happening and where.
- It also adds more specific context to the event that is sent to
Sentry, including the mysql error number, code, and the SQL query
itself.
2023-11-01 13:47:41 -07:00
..
adapter-cache-memory-ttl
adapter-cache-redis Added extra redis cache adapter configuration options 2023-10-31 13:58:22 +00:00
adapter-manager Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
admin Added sourceRoot key to admin sourcemaps (#18825) 2023-11-01 18:42:09 +00:00
announcement-bar-settings
api-framework Update TryGhost packages 2023-10-31 20:54:17 +01:00
api-version-compatibility-service
audience-feedback Update TryGhost packages 2023-10-31 20:54:17 +01:00
bookshelf-repository
bootstrap-socket Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
collections Update TryGhost packages 2023-10-31 20:54:17 +01:00
constants
core Improved error handling for SQL errors (#18797) 2023-11-01 13:47:41 -07:00
custom-theme-settings-service Update TryGhost packages 2023-10-31 20:54:17 +01:00
data-generator Update TryGhost packages 2023-10-31 20:54:17 +01:00
domain-events Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
donations
dynamic-routing-events
email-analytics-provider-mailgun
email-analytics-service Update TryGhost packages 2023-10-31 20:54:17 +01:00
email-content-generator
email-events
email-service Fixed email paywall styling bug on mobile (#18818) 2023-11-01 14:13:51 +00:00
email-suppression-list
event-aware-cache-wrapper
express-dynamic-redirects
external-media-inliner Improve external media inliner URL handling (#18428) 2023-10-19 11:58:41 +01:00
extract-api-key
html-to-plaintext
i18n Updated Russian translations (#18768) 2023-10-31 20:41:16 +01:00
importer-handler-content-files
importer-revue Update TryGhost packages 2023-10-31 20:54:17 +01:00
in-memory-repository
job-manager Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
link-redirects Update Types packages 2023-10-31 14:40:32 +01:00
link-replacer
link-tracking Update TryGhost packages 2023-10-31 20:54:17 +01:00
magic-link Update TryGhost packages 2023-10-31 20:54:17 +01:00
mail-events Update TryGhost packages 2023-10-31 20:54:17 +01:00
mailgun-client Update TryGhost packages 2023-10-31 20:54:17 +01:00
member-attribution Update TryGhost packages 2023-10-31 20:54:17 +01:00
member-events
members-api Update TryGhost packages 2023-10-31 20:54:17 +01:00
members-csv Fixed typos (#18648) 2023-10-31 15:21:44 +00:00
members-events-service Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
members-importer Update TryGhost packages 2023-10-31 20:54:17 +01:00
members-ssr Update TryGhost packages 2023-10-31 20:54:17 +01:00
mentions-email-report
milestones Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
minifier Update TryGhost packages 2023-10-31 20:54:17 +01:00
model-to-domain-event-interceptor
mw-api-version-mismatch Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
mw-cache-control
mw-error-handler Improved error handling for SQL errors (#18797) 2023-11-01 13:47:41 -07:00
mw-session-from-token
mw-update-user-last-seen
mw-version-match Update TryGhost packages 2023-10-31 20:54:17 +01:00
mw-vhost
nql-filter-expansions
oembed-service Update TryGhost packages 2023-10-31 20:54:17 +01:00
offers Update TryGhost packages 2023-10-31 20:54:17 +01:00
package-json Update TryGhost packages 2023-10-31 20:54:17 +01:00
payments Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
post-events
post-revisions
posts-service Update TryGhost packages 2023-10-31 20:54:17 +01:00
recommendations Update TryGhost packages 2023-10-31 20:54:17 +01:00
referrers
security Update TryGhost packages 2023-10-31 20:54:17 +01:00
session-service Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
settings-path-manager Update TryGhost packages 2023-10-31 20:54:17 +01:00
slack-notifications Update TryGhost packages 2023-10-31 20:54:17 +01:00
staff-service Cleaned up some email helpers (#18806) 2023-10-31 12:25:05 +00:00
stats-service Update Types packages 2023-10-31 14:40:32 +01:00
stripe Update TryGhost packages 2023-10-31 20:54:17 +01:00
tiers Update TryGhost packages 2023-10-31 20:54:17 +01:00
update-check-service Update TryGhost packages 2023-10-31 20:54:17 +01:00
verification-trigger Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
version-notifications-data-service
webmentions Aligned dependencies with resolution values 2023-10-13 08:37:36 +02:00
tsconfig.json