Problem/Motivation
The current set-up takes a long time to complete on a webform with thousands of submissions - it will likely error out from surpassing the server's max_execution_time or memory_limit.
Steps to reproduce
Enable IP deletion as a Form Bulk Operation in /admin/structure/webform/config.
Select a webform and choose "Delete collected IP addresses" in the operations dropdown.
Site will error if too many submissions.
Proposed resolution
Switch to using a direct database deletion and then invalidating the cache of the webform submissions. This also helps avoid sending emails, which would not be expected for an update like this.
Remaining tasks
Review.
User interface changes
API changes
Data model changes
Issue fork webform_ip_delete-3587367
Show commands
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 #4
andileco commentedComment #5
andileco commentedComment #6
nikathoneChecked the code and they looks good.
Comment #7
andileco commented