Ghost/ghost/core/test/regression/api/admin
Steve Larson a0b7476794
Updated staff deletion logic (#20069)
ref https://linear.app/tryghost/issue/ENG-826

- Changed staff deletion logic to do a bulk insert when adding a tag to
the users' associated posts

Staff deletion logic has really poor performance at scale because we do
individual updates for every post. If a user has dozens+ posts
(especially in a large db with thousands of posts), this can take >60s
and look like a timeout. Ultimately this should probably be a jobbed off
process, but for the time being we can improve this by doing a bulk
insert.

Note that this update uses the pattern for the bulk tagging of posts
from the right click (bulk) actions in the posts lists in Admin. With
bulk actions, **we do not trigger web hooks or the post.edited events**.
We will document this and follow up on this separately.
2024-04-25 08:19:11 -05:00
..
__snapshots__ Improved sending email addresses for self-hosters (#19617) 2024-01-30 11:21:08 +01:00
authentication.test.js Added Source as the new default theme 2023-10-03 14:02:08 +02:00
db.test.js 🔒 Fixed arbitrary file read via symlinks in content import 2023-08-15 13:01:11 +02:00
identities.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
images.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
members-importer.test.js Added email address alignment protections (#19094) 2023-11-23 10:25:30 +01:00
members-signin-url.test.js Added member attribution events and storage (#15243) 2022-08-18 17:38:42 +02:00
notifications.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
pages.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
posts.test.js Removed old email flow (#16349) 2023-03-07 16:08:40 +01:00
redirects.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
schedules.test.js Replaced Bluebird Promise.mapSeries with sequence util (#17008) 2023-06-23 09:04:37 +02:00
settings.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
slack.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
update-user-last-seen.test.js Removed all unused variables from test files 2023-03-10 14:29:55 +01:00
users.test.js Updated staff deletion logic (#20069) 2024-04-25 08:19:11 -05:00
utils.js Cleaned up lexicalEditor labs flag, switched Post model to lexical-by-default (#18607) 2023-10-23 17:51:34 +01:00
webhooks.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00