Skip to content

DialogContext.cancel_all_dialogs(True) does not propagate cancellation through parent dialogs #1685

Closed
@cas--

Description

@cas--

Version

4.13.0

Describe the bug

Within a child dialog we should be able to cancel_all_dialogs by setting the first parameter (cancel_parents) to True and that propagates up through the parents thus cancelling the conversation.

However due to the following statement in dialog_context.py#L224 this does not happen and instead the parent dialog's next step is run.

if cancel_parents is None:

To Reproduce

Steps to reproduce the behavior:

  1. In parent dialog MainDialog call begin_dialog('ChildDialog')
  2. In ChildDialog waterfall step call step.cancel_all_dialogs(True)

Expected behavior

All dialogs/conversation are ended

Additional Notes

botbuilder-js dialogContext.cancelAllDialogs

Metadata

Metadata

Assignees

Labels

Area: SDKGeneral SDK issues that don't clearly map to other areas (e.g.: helper methods)Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportUse this label to exclude the issue from the DRI report.P0Must Fix. Release-blockerbugIndicates an unexpected problem or an unintended behavior.customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions