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

port: [#4369] Prompt validation of confirm prompt in chatbot is not working for newly added language (#6554) #4388

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

ceciliaavila
Copy link
Collaborator

Fixes #4369

Description

This PR adds the recognizeLanguage property in the PromptOptions interface.
It also updates the onRecognize method of the ConfirmPrompt class to use this property solving the issue when a ConfirmPrompt is used along with a TranslationMiddleware.

Specific Changes

  • Updated PromptOptions interface adding the recognizeLanguage property.
  • Updated the onRecognize method of the ConfirmPrompt class using the new property.
  • Added a unit test in confirmPrompt.tests to cover the new test case.

Testing

These images show how the sample bot recognizes the option in French.
image

@ceciliaavila ceciliaavila requested a review from a team as a code owner December 13, 2022 11:07
@coveralls
Copy link

coveralls commented Dec 15, 2022

Pull Request Test Coverage Report for Build 3706820863

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.001%) to 84.635%

Totals Coverage Status
Change from base Build 3587703730: -0.001%
Covered Lines: 19968
Relevant Lines: 22357

💛 - Coveralls

@tracyboehrer tracyboehrer merged commit fe88652 into main Jan 4, 2023
@tracyboehrer tracyboehrer deleted the southworks/add/prompt-recognize-language branch January 4, 2023 19:36
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.

port: [#6531] Prompt validation of confirm prompt in chatbot is not working for newly added language (#6554)
3 participants