Ghost/ghost/core/test
Simon Backx 69228b2947
🐛 Fixed race condition when sending email (#15829)
refs https://github.com/TryGhost/Team/issues/2246

- This change helps avoid race conditions due to a lack of a transaction
in the email job. It also moves the status check before creating the
email batches (can take a while) to prevent other timing issues in case
the job got scheduled multiple times.
- Sets the patch option to true when changing the status of an email
batch. If we don't do this, the bookshelf-relations plugin might try to
save relations too. This could have caused a 'no rows updated' error.
- Added a test that tests if the email job can only run once
- Added logging to batching logic
2022-11-17 13:36:52 +01:00
..
e2e-api Added specific newsletter support for bulk unsubscribes (#15742) 2022-11-16 14:29:00 +07:00
e2e-browser Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
e2e-frontend Fixed validation for Members API newsletters endpoint 2022-11-07 17:18:36 +07:00
e2e-server Added Vary value for CORS in Frontend 2022-11-02 17:23:47 +08:00
e2e-webhooks Reduced default post relations (#15798) 2022-11-15 10:17:26 +01:00
integration 🐛 Fixed race condition when sending email (#15829) 2022-11-17 13:36:52 +01:00
regression Reduced default post relations (#15798) 2022-11-15 10:17:26 +01:00
unit Update the cover image in default fixtures (#15817) 2022-11-15 21:19:50 +00:00
utils Update the cover image in default fixtures (#15817) 2022-11-15 21:19:50 +00:00
.eslintignore Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
.eslintrc.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00