Skip to content

Broadcasts, Sequence Emails: Add allow_content_loss Parameter - #165

Open
n7studios wants to merge 1 commit into
masterfrom
add-allow-content-loss
Open

n7studios wants to merge 1 commit into
masterfrom
add-allow-content-loss

Conversation

@n7studios

Copy link
Copy Markdown
Contributor

Summary

Adds the allow_content_loss parameter to update_broadcast() and update_sequence_email() (changelog). Since 6 November 2026, changing email_template_id without content returns a 409 when it would discard existing content; this parameter confirms the change.

Testing

  • testUpdateBroadcastWithAllowContentLoss: Test changing a broadcast to a Starting point template without content returns an error, and succeeds with allow_content_loss.
  • testUpdateSequenceEmailWithAllowContentLoss: Test the same for a sequence email.

Checklist

@n7studios n7studios added this to the 2.9.0 milestone Nov 12, 2026
@n7studios n7studios self-assigned this Nov 12, 2026
@n7studios
n7studios marked this pull request as ready for review November 13, 2026 01:21
@n7studios
n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team November 13, 2026 01:21
Comment thread tests/TestsTrait.php
{
$emailTemplateID = $this->getStartingPointEmailTemplateID();
if (!$emailTemplateID) {
$this->markTestSkipped('No Starting point email template exists on the Kit account.');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why you'd mark this as skipped - shouldn't we have a failure (with an assert that spells out exactly what needs to be done - add a starting place template to the test Kit account)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants