SearchKit - Add contacts to mailing group in batches
authorColeman Watts <coleman@civicrm.org>
Sun, 14 Aug 2022 16:35:11 +0000 (12:35 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 14 Aug 2022 16:35:13 +0000 (12:35 -0400)
commitceb5a01a6d6d8856a941db311a17bca076d4b9df
treef3d60aec344d32af4ea8ecb7f1dd1dcdb3ef25ee
parenta832e4ce610df9a76e214f7872f0b079874e8fb1
SearchKit - Add contacts to mailing group in batches

For the "Email - schedule/send via CiviMail" action, this switches to
using the batch runner for adding contacts to the mailing group instead of
doing it all at once via chaining.
This prevents timeouts when creating very large mailings > 500 contacts.
ext/search_kit/ang/crmSearchTasks/crmSearchBatchRunner.component.js
ext/search_kit/ang/crmSearchTasks/crmSearchTaskMailing.ctrl.js
ext/search_kit/ang/crmSearchTasks/crmSearchTaskMailing.html