Needs work
Project:
Flag
Version:
5.3.x-dev
Component:
Flag core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2026 at 14:17 UTC
Updated:
11 Nov 2026 at 10:08 UTC
Jump to comment: Most recent
Split from #2489992: Do not delete flaggings on account cancelation
Deleting a large amount of flaggings can cause a project to run out of time / memory.
Create a flag and add a high number of flaggings (e.g. 50k).
Attempt to delete the flag from /admin/structure/flags.
The operation will fail when PHP runs out of memory while attempting to delete all related flagging entities.
Use a queue when deleting a large set of flaggings
None
Large amount of flaggings are deleted in a queue
None
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
idebr commentedComment #4
idebr commentedComment #5
idebr commentedComment #6
idebr commentedAdded test coverage in a new \Drupal\Tests\flag\Kernel\FlagServiceRemovalQueueTest
Comment #7
ivnishComment #8
ivnishNeeds to fix phpstan in test