dev/core#2046 Rationalise add vs create on email BAO #18495
Merged
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
This folds the email::add function into the email:create functions into one, deprecating add
Before
create calls add, add not deprecated
After
add deprecated wrapper for create
Technical Details
Discussion would be better over https://lab.civicrm.org/dev/core/-/issues/2046
Comments
Per comments on gitlab- I will close this & continue the discussion in gitlab unless this seems straight forward - once
#18494 is merged I do not believe ::add is called except from create - except for here https://github.com/giant-rabbit/com.giantrabbit.civimailchimp/blob/9fed1abd9680b1ae0e352c97b6370a6378d0313d/CRM/CiviMailchimp/Page/Webhook.php#L88 - I added an issue there on it giant-rabbit/com.giantrabbit.civimailchimp#4