-
Notifications
You must be signed in to change notification settings - Fork 483
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
[#6428] Adaptive ForEachElement loop's incorrectly when changes cause ContinueDialogAsync to be recalled #6448
Merged
tracyboehrer
merged 2 commits into
main
from
southworks/fix/foreachelement-loop-with-changes
Aug 23, 2022
Merged
[#6428] Adaptive ForEachElement loop's incorrectly when changes cause ContinueDialogAsync to be recalled #6448
tracyboehrer
merged 2 commits into
main
from
southworks/fix/foreachelement-loop-with-changes
Aug 23, 2022
Conversation
This file contains 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
ceciliaavila
added
the
Automation: No parity
PR does not need to be applied to other languages.
label
Aug 23, 2022
EricDahlvang
approved these changes
Aug 23, 2022
tracyboehrer
approved these changes
Aug 23, 2022
tracyboehrer
deleted the
southworks/fix/foreachelement-loop-with-changes
branch
August 23, 2022 19:15
tracyboehrer
pushed a commit
that referenced
this pull request
Aug 24, 2022
… ContinueDialogAsync to be recalled (#6448) * Reacquire childDialogState after ContinueDialogAsync * Add unit test
tracyboehrer
added a commit
that referenced
this pull request
Sep 1, 2022
* README version to 4.18 (#6425) Co-authored-by: Tracy Boehrer <[email protected]> * [#6434] Priority broken for RegexRecognizer (#6435) * Consider priority in OnRecognizeAsync method * Add unit test * Update Bool function to use Convert.ToBoolean (#6431) * Update IsMatch empty string values (#6426) * [#6428] Adaptive ForEachElement loop's incorrectly when changes cause ContinueDialogAsync to be recalled (#6448) * Reacquire childDialogState after ContinueDialogAsync * Add unit test * Support passing sas token url's for token service (#6449) Co-authored-by: Swagat Mishra <[email protected]> * Bump @actions/core from 1.6.0 to 1.9.1 in /actions/verify-pr-labels (#6445) Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.6.0 to 1.9.1. - [Release notes](https://github.com/actions/toolkit/releases) - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) --- updated-dependencies: - dependency-name: "@actions/core" dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Support passing sas token url's for token service (#6449) Co-authored-by: Swagat Mishra <[email protected]> * [#6428] Adaptive ForEachElement loop's incorrectly when changes cause ContinueDialogAsync to be recalled (#6448) * Reacquire childDialogState after ContinueDialogAsync * Add unit test * Delete vnext code which is dead (#6440) * Fix PublishToCoveralls.ps1 (#6439) * Remove failing Powershell patch download * Upgrade coveralls.net to 4.0.1 * [#6430] Adaptive ForEachElement does not exit when child action CancelAllDialogs is called (#6452) * Consider canceled status to end the dialog * Add unit test * [#6432] TeamsInfo.GetMemberAsync(...) doesn't work properly in Skill Bot scenario, it returns http 405 error (#6443) * Implement GetMemberAsync for skills * Add unit test * [#6433] Error in AdaptiveDialog.ContinueActionAsync with native dialog SDK (#6444) * Add condition before loading the resource * Add unit tests * Load AdaptiveDialogs dynamically on DialogContext Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Tracy Boehrer <[email protected]> Co-authored-by: Cecilia Avila <[email protected]> Co-authored-by: Joel Mut <[email protected]> Co-authored-by: swagat mishra <[email protected]> Co-authored-by: Swagat Mishra <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: BruceHaley <[email protected]>
tracyboehrer
pushed a commit
that referenced
this pull request
Sep 6, 2022
tracyboehrer
pushed a commit
that referenced
this pull request
Sep 7, 2022
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.
Fixes #6428
Description
This PR fixes the malfunctioning of the ForEachElement loop when there're recursive calls to the ContinueDialogAsync method by reacquiring the child dialog state after finishing the ContinueDialogAsync execution.
Specific Changes
RunItemsAsync
method of the ForEachElement class to call the GetActionScopeState method again after finishing the ContinueDialogAsync execution.AdaptiveDialogTests
class to cover the scenario with recursive calls to the ContinueDialogAsync method.Testing
These images show the ForEachElement's behavior before and after the fix.