Ghost/ghost/core
Hannah Wolfe af94855349 Removed bluebird catch predicates from API endpoints
refs: https://github.com/TryGhost/Ghost/issues/14882

- I found a common pattern where catch predicates were being used to catch non-existent models in destroy methods, and sometimes elsewhere in the API endpoints
- The use of predicates is deprecated, and we're working to remove them from everywhere, so that we can remove bluebird
- In order to still handle these errors correctly, we needed a small change to mw-error-handler so that it can detect EmptyResponse errors from bookshelf, as well as 404s
Note: there is a small change as a result of this - the context on these errors now says "Resource not found" instead of "{ModelName} not found".
- I think this is acceptable for now, as we will be reviewing these errors in more depth later. It's quite easy to make changes, we just have to decide what with proper design input
2022-08-24 11:27:09 +01:00
..
content Added free trial indicator to tier card in Admin 2022-08-16 14:15:31 +02:00
core Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
test Removed bluebird catch predicates from API endpoints 2022-08-24 11:27:09 +01:00
.c8rc.json Extracted shared API framework to separate package 2022-08-11 17:44:59 +02:00
.eslintignore Added member attribution script (#15242) 2022-08-16 15:44:51 +02:00
.eslintrc.js Updated Eslint ECMAScript compatibility to 2022 2022-08-09 15:51:40 +02:00
.gitignore Added copied release assets into .gitignore 2022-08-10 14:19:16 +02:00
.npmignore Deleted reference to core/admin 2022-08-03 16:28:41 +02:00
config.development.json Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
ghost.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
Gruntfile.js Cleaned up core package Gruntfile 2022-08-08 13:03:49 +02:00
index.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
jsconfig.json Deleted reference to core/admin 2022-08-03 16:28:41 +02:00
loggingrc.js Switched to original version for metrics 2022-08-04 19:22:57 +02:00
MigratorConfig.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
package.json Update dependency @playwright/test to v1.25.1 2022-08-24 08:42:13 +02:00