Repository navigation
#2810: add refresh --recover to publish and start paused triggeredSends - #2811
Open
JoernBerkefeld wants to merge 1 commit into
Conversation
- --recover skips the pause step for triggeredSends that are already Inactive, then publishes and starts them - --recover requires keys or --like; refused for a refresh of all triggeredSends - add --like to the refresh command (was rejected by the strict CLI) - log "failed to start" instead of "failed to publish" when the start step fails
Coverage ReportCommit:e29e283Base: develop@3f91ed7 Details (changed files):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR details
What changes did you make? (Give an overview)
closes [BUG] refresh triggeredSend cannot recover items left paused by a failed publish/start #2810
New option
mcdev refresh ... --recover: a triggeredSend left paused (Inactive) by a failed refresh is published and started again. The pause step is skipped because it is already paused. Active triggeredSends are refreshed as before; any other status is still skipped.--recoverrequires keys or--like. A refresh of all triggeredSends with--recoveris refused, because it would also start triggeredSends that were paused on purpose.Added
--liketo therefreshcommand. The ticket asks for "keys or--like", but the strict CLI rejected--likeonrefreshso far.When a paused triggeredSend is skipped without
--recover, the error now points to--recover.The start step's error now says
failed to startinstead offailed to publish, and it removesTriggeredSendStatus(notRefreshContent) after success.Unchanged: journey refresh and asset deploy
--refreshcallTriggeredSend.refreshwithcheckKey=falseor with active keys only, so they are not affected.Further details (optional)
Tests (
test/type.triggeredSend.test.js, new fixtureretrieve-CustomerKey=testExisting_triggeredSend_paused-response.xml):--recover→ skipped, error, only the status retrieve is sent--recover→ refreshed with exactly two updates (publish, then start), no pause--recover→ normal pause, publish, start--recoverwithout keys → refused, no API callsNot tried live yet against a real business unit; will follow on this branch.
Wiki: refresh section in
06.b-~-Standard-Commands.mdprepared locally (new--likeand--recoverparagraphs and examples); to be pushed after the release.Checklist