Group delete error 500 when processing large amount of contents/members

Created on 5 May 2022, over 2 years ago
Updated 9 August 2023, over 1 year ago

Problem/Motivation

When deleting a group containing a large amount of contents and/or members, the time for processing all of the group_contents deletion in the preDelete() function may lead to error 500 due to server max execution time hit.

Steps to reproduce

  • Create a group with 2000 contents & 2000 members
  • Delete it via the interface

Proposed resolution

Split delete operations (especially group_contents entities deletions) into batches, to avoid hitting the server max execution time.

User interface changes

Users will now be able to follow the delete operations progress thanks to the Batch API.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain rzb Barcelona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024