Ensure that submission are deleted when a webform is deleted

Created on 8 January 2022, over 3 years ago
Updated 12 March 2024, over 1 year ago

Problem/Motivation

If a webform has a lot of submissions (1000+), when the webform is deleted an out of memory error will thrown.

Steps to reproduce

Add 3000+ submissions to the default Contact webform
Attempt to delete the default Contact webform

Proposed resolution

Only a webform to be deleted if it has less the default_batch_delete_size (500), otherwise, prompt the users to delete all submissions first.

This issue also impacts the bulk deletion of webforms.

Remaining tasks

Single webform delete
Determine if webform has more than 500 submissions and direct user to delete the submissions with a redirect back to single delete

Multiple webform delete
Show the number of submissions and link to submission delete form with a redirect back to bulk delete.

User interface changes

The deletion form for deleting single and multiple webforms will be updated.

API changes

N/A

Data model changes

N/A

πŸ“Œ Task
Status

Needs work

Version

6.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

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