Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

43.complex-dialog replaces a waterfall dialog incorrectly in all languages #2457

Closed
v-kydela opened this issue May 29, 2020 · 0 comments · Fixed by #3955
Closed

43.complex-dialog replaces a waterfall dialog incorrectly in all languages #2457

v-kydela opened this issue May 29, 2020 · 0 comments · Fixed by #3955
Assignees
Labels
ExemptFromDailyDRIReport Use this label to exclude the issue from the DRI report. MINDTREE

Comments

@v-kydela
Copy link
Contributor

Sample information

  1. Sample type: samples
  2. Sample language: dotnetcore/nodejs/python
  3. Sample name: 43.complex-dialog

Describe the bug

Every sample uses "replace dialog" correctly except for sample 43 which erroneously replaces a waterfall dialog with the waterfall dialog's parent, a component dialog. Our samples should demonstrate that dialogs should only replace other dialogs that are meant to be on the same "level" which is to say in the same set/stack/context.

C#

return await stepContext.ReplaceDialogAsync(nameof(ReviewSelectionDialog), list, cancellationToken);

Node.js

return await stepContext.replaceDialog(REVIEW_SELECTION_DIALOG, list);

Python

return await step_context.replace_dialog(
    ReviewSelectionDialog.__name__, selected
)

There is no discernible faulty behavior when running the sample as-is, but the internal inconsistency in how the dialog stack is managed can cause problems if this sample is used as a starting point as this customer discovered.

Expected behavior

The waterfall dialog should replace itself either by using its ID directly or by referencing the component dialog's initial dialog ID.

[bug]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExemptFromDailyDRIReport Use this label to exclude the issue from the DRI report. MINDTREE
Projects
None yet
3 participants