Deleting an iteration cadence timeouts when it contains too many associated issues
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
A customer recently run into an error when trying to delete an iteration cadence https://gitlab.com/gitlab-com/support/internal-requests/-/issues/26532 (internal only).
We get a request timeout when trying to delete a cadence that has too many issues associated to it through iterations. We should perform this delete process in an async way. We can do something similar to what we do today for deleting groups and projects in https://gitlab.com/gitlab-org/gitlab/-/blob/295f84ed5f2fe372dc9dca20207967af5c3400c4/app/services/groups/destroy_service.rb#L7
It's also important to delete/update associated records in batches, as for large amount of records we might also hit the postgres 15second timeout