Ghost/ghost/core/test/regression
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
..
api Updated staff deletion logic (#20069) 2024-04-25 08:19:11 -05:00
mock-express-style Enforced more Mocha lint rules (#19720) 2024-04-16 09:37:06 +02:00
models Added portal default plan setting (#19238) 2023-12-06 11:39:58 +01:00
site Added test to test default theme against linked gscan version (#19020) 2023-11-16 12:03:00 +00:00