8000 Fix get_conversation_reference in skill_handler_impl by ceciliaavila · Pull Request #1765 · microsoft/botbuilder-python · GitHub
[go: up one dir, main page]

Skip to content

Fix get_conversation_reference in skill_handler_impl #1765

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

Conversation

ceciliaavila
Copy link
Collaborator

#minor

Description

This PR adds a validation in _skill_handler_impl.py for the get_skill_conversation_reference method.
This missing validation was causing an error in bots with a custom SkillConversationIdFactory class, building the reference in the get_conversation_reference method, and being over nested.

This fix was introduced in PR #1728 and lost with the migration from skill_handler.py to _skill_handler_impl.py in PR #1707

With the change in this PR, the users can still use their previous implementation of the SkillConversationIdFactory.

The bots used to test are the WaterfallHostBot Python and WaterfallSkillBot Python from the BotFramework-FunctionalTests repo.

The BotBuilder version used for all the packages is the most recent as of today from the main branch of this repo.

Specific Changes

  • Added an if to check if the conversation_reference_result is already a SkillConversationReference instance and return it.

Testing

Before the change the Host Bot throws the following errors in the step shown, using the current latest version of main from botbuilder-core.
image
image

After applying the changes in this PR, the conversation works as expected.
image

@axelsrz axelsrz merged commit 70fee41 into microsoft:main Jul 6, 2021
@ceciliaavila ceciliaavila deleted the southworks/fix/skill_handler_impl_get_reference branch July 6, 2021 16:54
axelsrz pushed a commit that referenced this pull request Jul 7, 2021
Co-authored-by: Santiago Grangetto <38112957+santgr11@users.noreply.github.com>
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.

3 participants
0