Deletemailings.CleanMailing deletes draft A/B testing mailings, A/B test page won't load
Overview
Deletemailings.CleanMailing
deletes not scheduled (draft) A/B test mailings also, but doesn't maintain civicrm_mailing_abtest
table.
This way A/B tests still show up on Mailings >> Manage A/B tests but only a white screen with no clue on the console (thats a separate issue for core) is presented when clicked on "Continue".
If A/B variants were sent out but a final was not selected - which can happen for example if none of the variants is accepted to be final (we have a third variant) - the final mailing will remain unscheduled and deleted by CleanMailing
and this way even "Reports" won't work on completed testings.
Proposal
-
Deletemailings.CleanMailing
should not touch A/B tests - The API should properly support cleaning old draft A/B tests. This could be done through a new, optional parameter:
delete_draft_ab_days