8000 Fixed retry prompting in NumberPrompt by adding await by Zerryth · Pull Request #302 · microsoft/botbuilder-python · GitHub
[go: up one dir, main page]

Skip to content

Fixed retry prompting in NumberPrompt by adding await #302

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

Merged
merged 2 commits into from
Aug 19, 2019

Conversation

Zerryth
Copy link
Contributor
@Zerryth Zerryth commented Aug 15, 2019

Fixes #281


Changes

Originally retry prompts were not sending to the user when an invalid value was sent to a NumberPrompt (e.g. "Please enter a number" "hello" <-- invalid)

  • This was happening simply because NumberPrompt was missing an "await" for sending an activity if it passed the condition of needing to send a retry prompt.

  • Uncommented tests that were previously ported that were breaking for retry promps and validation

Screen shots

Expected Behavior (plugging a NumberPrompt into CoreBot real quickly)
image

@Zerryth Zerryth requested a review from axelsrz August 15, 2019 22:15
@Zerryth Zerryth merged commit 6c15775 into master Aug 19, 2019
@Zerryth Zerryth deleted the Zerryth/NumberPromptRetry branch August 19, 2019 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NumberPrompt doesn't accept retry value
2 participants
0