Ghost/ghost/core/test
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
..
e2e-api Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00
e2e-browser 🐛 Fixed admin error when deleting an unsaved or imported post (#20053) 2024-04-18 10:02:02 -07:00
e2e-frontend Added new member signup flow behind labs flag (#19986) 2024-04-04 15:25:41 -07:00
e2e-server Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02: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 🐛 Fixed file card button not being linked in emails (#20023) 2024-04-16 10:37:28 +00:00
regression Updated staff deletion logic (#20069) 2024-04-25 08:19:11 -05:00
unit Fixed test on Node 20 2024-04-18 13:17:16 +02:00
utils Optimised email stats aggregation query for typical column usage 2024-04-03 16:27:23 +01:00
.eslintignore Added Source as the new default theme 2023-10-03 14:02:08 +02:00
.eslintrc.js Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00