Deprecate generating recipients from MailingJob #13627
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Deprecate generating recipients from MailingJob
Before
No deprecation notice when calling MailingJob::create with mailing_id (which results in the recipient list being generated, and is the reason this function is generally bypassed)
After
Deprecation notice
Technical Details
Every place in the code that would sensibly call this BAO / api create function ...
doesn't - presumably because it does something generally done elsewhere.
Deprecating it will enable us to remove it later & allow this create fn & associated
hooks to be called
generating the list when not required causes deep performance badness
Comments
Am expecting syntaxconformance fails - assuming 'mailing_id' gets through from there - will address as they arise
#12231